Re: function return type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: function return type
Date: 2004-07-19 14:40:35
Message-ID: 22193.1090248035@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-07-19 14:44:31 Re: pg_dump bug fixing
Previous Message Tom Lane 2004-07-19 14:38:04 Re: CVS compile failure