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.94.2) (envelope-from ) id 1s3Q7u-00Cnuc-T4 for pgsql-admin@arkaria.postgresql.org; Sun, 05 May 2024 00:53:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s3Q7s-003Pxg-73 for pgsql-admin@arkaria.postgresql.org; Sun, 05 May 2024 00:53:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s3Q7r-003PxX-PX for pgsql-admin@lists.postgresql.org; Sun, 05 May 2024 00:53:12 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s3Q7p-001b2W-MU for pgsql-admin@lists.postgresql.org; Sun, 05 May 2024 00:53:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id D43BA6EDA5; Sun, 5 May 2024 00:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1714870387; bh=3rA9sHGFCWWwq30pnOo4K/fWToUYvtIXg46FDOVsmQ0=; h=From:Subject:Date:References:To:In-Reply-To:From; b=tqv3D5oDwDmmyLV3WIcKWy0sg/XAwl8JHROXeVy5ERAmxwmaEYqESQoDjVBJ0ayUq /nubLm1tmGn7sLVgEXG4qTBaGpGM2T7QoKS2rNVJVpTw0otMJUz9g45leFIJEKO1Ub ip9Qc57hBsLCDpVRHfHKViguJDv2GQTq7LW/GB8gi0s91O3NO3VSHXrhZFFJV7JSnl aNdPUoqppuGZkyqBz7zPU0VnNCFaATVUOO0wbpyHuQZDcEdl4/sHIR9CFEdZ+C3qRT NkYKH17L/B19VF4olSTIaMZYVCFUtfiVQoYslf14ol1uR+Yezd1ghC//HqmATGTDPt Zjzg+Lt2HxlgA== X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2s9GlltKOI8N; Sun, 5 May 2024 00:53:07 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 3F1A16E147; Sun, 5 May 2024 00:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1714870387; bh=3rA9sHGFCWWwq30pnOo4K/fWToUYvtIXg46FDOVsmQ0=; h=From:Subject:Date:References:To:In-Reply-To:From; b=tqv3D5oDwDmmyLV3WIcKWy0sg/XAwl8JHROXeVy5ERAmxwmaEYqESQoDjVBJ0ayUq /nubLm1tmGn7sLVgEXG4qTBaGpGM2T7QoKS2rNVJVpTw0otMJUz9g45leFIJEKO1Ub ip9Qc57hBsLCDpVRHfHKViguJDv2GQTq7LW/GB8gi0s91O3NO3VSHXrhZFFJV7JSnl aNdPUoqppuGZkyqBz7zPU0VnNCFaATVUOO0wbpyHuQZDcEdl4/sHIR9CFEdZ+C3qRT NkYKH17L/B19VF4olSTIaMZYVCFUtfiVQoYslf14ol1uR+Yezd1ghC//HqmATGTDPt Zjzg+Lt2HxlgA== From: Scott Ribe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: ERROR: return and sql tuple descriptions are incompatible Date: Sat, 4 May 2024 18:52:56 -0600 References: To: M Sarwar , "pgsql-admin@lists.postgresql.org" In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3774.500.171.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 4, 2024, at 6:38=E2=80=AFPM, M Sarwar = wrote: >=20 > Are you suggesting me to use the type either TEXT or some other data = type in the below clause of the SQL. No, but if you want them both in the same column of your output, then = one or the other must be cast so the column type is consistent.