Re: [GENERAL] returning dynamic record

2007-11-06 Thread Reg Me Please
Il Wednesday 07 November 2007 06:35:55 Tom Lane ha scritto: > nick <[EMAIL PROTECTED]> writes: > > Just wondering, if it is possible to do the following > > create function foo() RETURNS Record(int, varchar, int) > > OUT parameters (in reasonably recent PG releases). > > regression=# create functio

Re: [GENERAL] returning dynamic record

2007-11-06 Thread Tom Lane
nick <[EMAIL PROTECTED]> writes: > Just wondering, if it is possible to do the following > create function foo() RETURNS Record(int, varchar, int) OUT parameters (in reasonably recent PG releases). regression=# create function foo (f1 out int, f2 out varchar, f3 out int) as $$ select 42, 'foo'::v

[GENERAL] returning dynamic record

2007-11-06 Thread nick
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