pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jim@nasby.net>
To: Marc McIntyre <mmcintyre@squiz.net>
Cc: Jean-Christophe Roux <jcxxr@yahoo.com>
Cc: pgsql-php@postgresql.org
Subject: Re: plpgsql returning array
Date: Wed, 18 Oct 2006 17:44:53 -0500
Message-ID: <20061018224453.GF56874@nasby.net> (raw)
In-Reply-To: <4531D112.90301@squiz.net>
References: <20061014202841.17630.qmail@web35304.mail.mud.yahoo.com>
	<4531D112.90301@squiz.net>

On Sun, Oct 15, 2006 at 04:11:30PM +1000, Marc McIntyre wrote:
> You should use a set returning function. Your function can be rewritten 
> as a set returning function like so:

Isn't there a way to return an array? SRFs are great, but not always the
best tool.

BTW, neither function should be marked as VOLATILE... they're actually
IMMUTABLE as written.
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



view thread (5+ messages)  latest in thread

Message-ID: <20061018224453.GF56874@nasby.net>
Permalink:  ../20061018224453.GF56874@nasby.net/
Also on:    postgresql.org/message-id/20061018224453.GF56874@nasby.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jim@nasby.net, mmcintyre@squiz.net, jcxxr@yahoo.com
  Subject: Re: plpgsql returning array
  In-Reply-To: <20061018224453.GF56874@nasby.net>
  References: <20061014202841.17630.qmail@web35304.mail.mud.yahoo.com> <4531D112.90301@squiz.net> <20061018224453.GF56874@nasby.net>

* 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