Function returns composite type - Mailing list pgsql-hackers

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

Previous
From: "postgresql"
Date:
Subject: incremental backup
Next
From: Tom Lane
Date:
Subject: Re: 7.3.3 COMPILE FAILURE: pg_dump (fwd)