Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7Dyp-0055Zh-0r for pgsql-novice@arkaria.postgresql.org; Mon, 30 Mar 2026 14:52:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7Dyn-003zU6-1y for pgsql-novice@arkaria.postgresql.org; Mon, 30 Mar 2026 14:52:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7Dyn-003zTx-0x for pgsql-novice@lists.postgresql.org; Mon, 30 Mar 2026 14:52:37 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7Dyl-00000001osL-2EAv for pgsql-novice@lists.postgresql.org; Mon, 30 Mar 2026 14:52:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=98RH4WIqJsEfMdE7O7FWOw2d/r6XfbBEWgB32/KTGFI=; b=LTkiXFmjF/hc4JHleXBtiW+LAZ FSWAbRw1rbdQYjMjX6FmwcfrAcIYaZ0i2kiyrtOwxqTRElLB3nUEODhtmZgaE16O8jHQ6fEq1gWX/ QgKh8MV3ItdSWooD47mj5dF11xScCZbwd0im6OXyXWPRlfEtCNCV/J+Gojw/b6C15lu4=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1w7Dyj-000Fi7-0q; Mon, 30 Mar 2026 16:52:33 +0200 Date: Mon, 30 Mar 2026 16:52:33 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Ibrahim Shaame Cc: "pgsql-novice@lists.postgresql.org" Subject: Re: Adding column in a recursive query Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 30, 2026 at 05:22:53PM +0300, Ibrahim Shaame wrote: > Hello Hubert. > Thanks for the reply. Both are integers and they work well without the two > lines. So what changed one of them to text. Can you see where? I have not > been able to identify. Please show *exact* query that fails, and `\d` of table(s) that are being used. Best regards, depesz