pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Yves Vindevogel <yves.vindevogel@implements.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: Stored Procedure
Date: Tue, 22 Nov 2005 22:05:17 -0700
Message-ID: <20051123050517.GA49008@winnie.fuhr.org> (raw)
In-Reply-To: <33f74d2a046b89d119c349e82b7398de@implements.be>
References: <e28aace15975ef9972fdd65ceb6e0ce8@implements.be>
	<20051122184119.M48526@contactbda.com>
	<33f74d2a046b89d119c349e82b7398de@implements.be>

On Tue, Nov 22, 2005 at 11:17:41PM +0100, Yves Vindevogel wrote:
> But this does not work without the  second line, right ? 

What second line?  Instead of returning a specific composite type
a function can return RECORD or SETOF RECORD; in these cases the
query must provide a column definition list.

> BTW, the thing returned is not a record.  It's a bunch of fields, not a 
> complete record or fields of multiple records. 

What distinction are you making between a record and a bunch of
fields?  What exactly would you like the function to return?

> I'm not so sure it works. 

Did you try it?  If you did and it didn't work then please post
exactly what you tried and explain what happened and how that
differed from what you'd like.

-- 
Michael Fuhr



view thread (7+ messages)  latest in thread

Message-ID: <20051123050517.GA49008@winnie.fuhr.org>
Permalink:  ../20051123050517.GA49008@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051123050517.GA49008@winnie.fuhr.org

 · 

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-performance@postgresql.org
  Cc: mike@fuhr.org, yves.vindevogel@implements.be
  Subject: Re: Stored Procedure
  In-Reply-To: <20051123050517.GA49008@winnie.fuhr.org>

* 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