Function returns composite type

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Function returns composite type
Date: 2003-06-10 12:45:20
Message-ID: 3EE5D2E0.6060906@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sigaev(dot)ru

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-10 13:14:37 Re: 7.3.3 COMPILE FAILURE: pg_dump (fwd)
Previous Message postgresql 2003-06-10 12:14:37 incremental backup