Re: avoid the creating the type for setof - Mailing list pgsql-sql

From John Fabiani
Subject Re: avoid the creating the type for setof
Date
Msg-id 3242358.vcvgTIkFkN@linux-12
Whole thread Raw
In response to avoid the creating the type for setof  (John Fabiani <johnf@jfcomputer.com>)
List pgsql-sql
On Friday, December 30, 2011 06:26:19 AM John Fabiani wrote:
> Hi,
> I recall somewhere I saw a simple plpgsql function that returned a table
> with more than one record that did not use a defined type or a temp table (
> at least I think I did).  Is it possible to create such a function that
> will return more than one record and not require a record type or temp
> table?
> 
> something like
> 
> return setof record as
> return query select ...
> 
> return
> 
> 
> Johnf

Thanks all - I knew I had seen it in the past.

Johnf


pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: avoid the creating the type for setof
Next
From: Jan Bakuwel
Date:
Subject: Re: Current transaction is aborted, commands ignored until end of transaction block