Re: Function returns composite type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function returns composite type
Дата
Msg-id 2190.1055252752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function returns composite type  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Function returns composite type  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> writes:
> 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.

Perhaps the RECORD stuff would help you?  It's poorly documented, but
you could look at the code for SRFs to see how to use it.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: host and hostssl equivalence in pg_hba.conf
Следующее
От: Jon Jensen
Дата:
Сообщение: Re: host and hostssl equivalence in pg_hba.conf