Re: Allowed to return possibly TOASTed datums?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Behrens <jbe-mlist(at)magnetkern(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Allowed to return possibly TOASTed datums?
Date: 2024-12-14 17:01:49
Message-ID: 1387150.1734195709@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan Behrens <jbe-mlist(at)magnetkern(dot)de> writes:
> Is it allowed to use the following function, assuming the data type is
> TOASTable?

> PG_FUNCTION_INFO_V1(mytype_pos);
> Datum mytype_pos(PG_FUNCTION_ARGS) {
> PG_RETURN_DATUM(GETARG_DATUM(0));
> }

Absolutely. You can find things equivalent to that in the
core code, I think.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2024-12-14 18:13:55 Re: Allowed to return possibly TOASTed datums?
Previous Message Jan Behrens 2024-12-14 13:28:27 Allowed to return possibly TOASTed datums?