Re: Function returns composite type - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Function returns composite type
Date
Msg-id 2190.1055252752@sss.pgh.pa.us
Whole thread Raw
In response to Function returns composite type  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: Function returns composite type  (Teodor Sigaev <teodor@sigaev.ru>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: host and hostssl equivalence in pg_hba.conf
Next
From: Jon Jensen
Date:
Subject: Re: host and hostssl equivalence in pg_hba.conf