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 1tpchB-0099ce-8S for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 00:33:09 +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 1tpchA-00Cugu-17 for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 00:33:08 +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 1tpch9-00Cugm-LS for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 00:33:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpch6-00104y-0L for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 00:33:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5250X41d213108; Tue, 4 Mar 2025 19:33:04 -0500 From: Tom Lane To: Garfield Lewis cc: "pgsql-general@lists.postgresql.org" Subject: Re: Get CTID from within an OUTPUT/SEND function In-reply-to: References: Comments: In-reply-to Garfield Lewis message dated "Wed, 05 Mar 2025 00:09:03 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <213106.1741134784.1@sss.pgh.pa.us> Date: Tue, 04 Mar 2025 19:33:04 -0500 Message-ID: <213107.1741134784@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Garfield Lewis writes: > I would like to know if it is possible to get the CTID from within > the OUTPUT and SEND functions of a CREATE TYPE? No. A datatype output function has no reason to expect that the value it's handed has ever been in a table at all. regards, tom lane