Re: function return type - Mailing list pgsql-hackers

From Tom Lane
Subject Re: function return type
Date
Msg-id 22193.1090248035@sss.pgh.pa.us
Whole thread Raw
In response to function return type  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> How can I get a TupleDesc for the return type of a non-SR function that 
> returns a tuple? I'm sure it's there somewhere but I just can't see it.

What do you have available to identify the type?

If you know the type OID, then (in CVS tip) I'd recommend the typcache.c
function lookup_rowtype_tupdesc().
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CVS compile failure
Next
From: Tom Lane
Date:
Subject: Re: pg_dump bug fixing