returning dynamic record

From: nick <nick(at)walkerdatanet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: returning dynamic record
Date: 2007-11-07 02:21:37
Message-ID: 47312131.1010501@walkerdatanet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just wondering, if it is possible to do the following

create function foo() RETURNS Record(int, varchar, int)

then inside of the function return a set int, varchar, int.

Then be able to call the function

select * From foo()

instead of having to write

select * from foo() as (int, varchar, int)

or declaring a type?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommy Flewwelling 2007-11-07 02:35:25 ‘--pwfile’ command
Previous Message Andrej Ricnik-Bay 2007-11-07 02:00:57 Re: Npsql is much faster than ODBC ?