Zdenek Kotala wrote:
I expect that function cannot get toast pointer. It can get only detoasted attributes. Correct me if I'm wrong.
A function is passed a raw datum, which can be toasted. Now, practically all functions call one of the PG_GETARG_* macros that detoast the datum before doing anything else, but there is also PG_GETARG_RAW_VARLENA_P macro that returns the toast pointer. Although, grepping through the source code suggests that it's not actually used anywhere.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers