Re: Allowed to return possibly TOASTed datums?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Allowed to return possibly TOASTed datums?
Дата
Msg-id 1387150.1734195709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Allowed to return possibly TOASTed datums?  (Jan Behrens <jbe-mlist@magnetkern.de>)
Ответы Re: Allowed to return possibly TOASTed datums?
Список 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 по дате отправления: