Re: Get CTID from within an OUTPUT/SEND function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Garfield Lewis <garfield(dot)lewis(at)lzlabs(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Get CTID from within an OUTPUT/SEND function
Date: 2025-03-05 00:33:04
Message-ID: 213107.1741134784@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Garfield Lewis <garfield(dot)lewis(at)lzlabs(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2025-03-05 01:07:23 Messages o Terminal
Previous Message Garfield Lewis 2025-03-05 00:09:03 Get CTID from within an OUTPUT/SEND function