Re: RowDescription for a function does not include table OID

Поиск
Список
Период
Сортировка
От Maxwell Dreytser
Тема Re: RowDescription for a function does not include table OID
Дата
Msg-id LV3PR16MB6001FF31889B0B0DD4EF6476E6C92@LV3PR16MB6001.namprd16.prod.outlook.com
обсуждение исходный текст
Ответ на Re: RowDescription for a function does not include table OID  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: RowDescription for a function does not include table OID
Список pgsql-general
On Friday, June 21, 2024 10:48 AM David G. Johnston <david.g.johnston@gmail.com>wrote:

>Yes, but the bug is yours.  The definition you want is:  RETURNS SETOF physical_table (not tested though)
>What you did was produce a one-column table whose column type is a composite (and whose name is like - what with
case-foldingof unquoted identifiers).  Since that table doesn't exist anywhere in the catalogs it has no TableOID. 

SETOF also does not return correct RowDescription data. Table OID and column number are still both 0.
Both versions have the exact same pg_proc.prorettype. If I join this onto pg_type, the pg_type.typrelid =
'physical_table'::regclass.

Regards,
Maxwell


В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: RowDescription for a function does not include table OID
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: RowDescription for a function does not include table OID