Function returns composite type

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Function returns composite type
Дата
Msg-id 3EE5D2E0.6060906@sigaev.ru
обсуждение исходный текст
Ответы Re: Function returns composite type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi!

For some reason I wish to write C-function for SQL which returns set of 
composite type, but this type is defined function itself and composite type can 
be changed from call to call. So I can't define create type by 'CREATE TYPE' 
command.

It's documented (34.7.8. Returning Rows (Composite Types) from C-Language 
Functions) there are only two ways to get TupleDesc: for a named relation and 
based on type OID. That ways are useless in my case.

Is it possibly?



-- 
Teodor Sigaev                                  E-mail: teodor@sigaev.ru



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

Предыдущее
От: "postgresql"
Дата:
Сообщение: incremental backup
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.3.3 COMPILE FAILURE: pg_dump (fwd)