Re: Allowed to return possibly TOASTed datums? - Mailing list pgsql-general

From Tom Lane
Subject Re: Allowed to return possibly TOASTed datums?
Date
Msg-id 1387150.1734195709@sss.pgh.pa.us
Whole thread Raw
In response to Allowed to return possibly TOASTed datums?  (Jan Behrens <jbe-mlist@magnetkern.de>)
Responses Re: Allowed to return possibly TOASTed datums?
List pgsql-general
Jan Behrens <jbe-mlist@magnetkern.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



pgsql-general by date:

Previous
From: Jan Behrens
Date:
Subject: Allowed to return possibly TOASTed datums?
Next
From: Ron Johnson
Date:
Subject: Re: Allowed to return possibly TOASTed datums?