pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Fabiani <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org
Subject: avoid the creating the type for setof
Date: Fri, 30 Dec 2011 06:26:19 -0800
Message-ID: <1762087.ynHxkPSFx3@linux-12> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <1762087.ynHxkPSFx3@linux-12>
Permalink:  ../1762087.ynHxkPSFx3@linux-12/
Also on:    postgresql.org/message-id/1762087.ynHxkPSFx3@linux-12

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: johnf@jfcomputer.com
  Subject: Re: avoid the creating the type for setof
  In-Reply-To: <1762087.ynHxkPSFx3@linux-12>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox