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: Re: avoid the creating the type for setof
Date: Fri, 30 Dec 2011 07:08:01 -0800
Message-ID: <3242358.vcvgTIkFkN@linux-12> (raw)
In-Reply-To: <1762087.ynHxkPSFx3@linux-12>
References: <1762087.ynHxkPSFx3@linux-12>

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



view thread (4+ messages)

Message-ID: <3242358.vcvgTIkFkN@linux-12>
Permalink:  ../3242358.vcvgTIkFkN@linux-12/
Also on:    postgresql.org/message-id/3242358.vcvgTIkFkN@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: <3242358.vcvgTIkFkN@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