return setof and Temp tables - Mailing list pgsql-general

From Justin B. Kay
Subject return setof and Temp tables
Date
Msg-id 716B12278E234246B3217E1ED755393A0A2356@SBServer.2Pattersons.local
Whole thread Raw
Responses Re: return setof and Temp tables  (Tony Caduto <tony.caduto@amsoftwaredesign.com>)
Re: return setof and Temp tables  (William Leite Araújo <william.bh@gmail.com>)
Re: return setof and Temp tables  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-general

I have looked around and found that you can use return setof in a function to return a result set, but can you use a temp table as the setof target?  I build a temp table using various select statements and then try to return the result as a recordset.  I get an error: type t1 does not exist.

 

If this is not possible, is there some alternative way to do this?  I am trying to translate what was done in a ms sql database.

 

Justin

pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: How do I use the backend APIs
Next
From: Steve Atkins
Date:
Subject: Fixing up a corrupted toast table