public inbox for [email protected]
help / color / mirror / Atom feedGet CTID from within an OUTPUT/SEND function
2+ messages / 2 participants
[nested] [flat]
* Get CTID from within an OUTPUT/SEND function
@ 2025-03-05 00:09 Garfield Lewis <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Garfield Lewis @ 2025-03-05 00:09 UTC (permalink / raw)
To: [email protected] <[email protected]>
I would like to know if it is possible to get the CTID from within the OUTPUT and SEND functions of a CREATE TYPE? I’ve found a function called currtid_byrelname and the comment in the function prolog says it is to get a CTID but I cannot find any example usage of it.
Regards,
Garfield
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Get CTID from within an OUTPUT/SEND function
@ 2025-03-05 00:33 Tom Lane <[email protected]>
parent: Garfield Lewis <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2025-03-05 00:33 UTC (permalink / raw)
To: Garfield Lewis <[email protected]>; +Cc: [email protected] <[email protected]>
Garfield Lewis <[email protected]> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-03-05 00:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 00:09 Get CTID from within an OUTPUT/SEND function Garfield Lewis <[email protected]>
2025-03-05 00:33 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox