Get CTID from within an OUTPUT/SEND function

From: Garfield Lewis <garfield(dot)lewis(at)lzlabs(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Get CTID from within an OUTPUT/SEND function
Date: 2025-03-05 00:09:03
Message-ID: AM8PR05MB8257C674219A37B2116E111AE3C82@AM8PR05MB8257.eurprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2025-03-05 00:33:04 Re: Get CTID from within an OUTPUT/SEND function
Previous Message Adrian Klaver 2025-03-04 23:24:53 Re: Version compatibility