pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Pilosov <alex@pilosoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Function returning an array
Date: Thu, 23 Aug 2001 15:45:25 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com> (raw)
In-Reply-To: <5905.998586437@sss.pgh.pa.us>

On Thu, 23 Aug 2001, Tom Lane wrote:

> "Josh Berkus" <josh@agliodbs.com> writes:
> >> What's the correct syntax to return two VARCHAR(255)?
> 
> > There isn't one.  At this time, functions cannot return arrays.
> 
> Well, they *can*, it's just that there's no syntax to support
> constructing an array value in SQL or plpgsql languages.
Most importantly, there's no syntax to support deconstructing an array ;)

I have patches to support "select * from function(args)" almost done, I
just need to perform merge against -current. But unfortunately RL took
most of my time and I was unable to work on pg-related things for last
months. The patches contain quite a lot of changes to core structures
(RangeTblEntry and others) and I want to get them in before 7.2 gets
frozen. Hopefully this weekend I'll have some time to do merge and
cleanup....

Also included in the patch is ability to do 'select * from cursor foo'.


-alex




view thread (4+ messages)

Message-ID: <Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com>
Permalink:  ../Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com/
Also on:    postgresql.org/message-id/Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com

 · 

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-sql@postgresql.org
  Cc: alex@pilosoft.com, tgl@sss.pgh.pa.us
  Subject: Re: Function returning an array
  In-Reply-To: <Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com>
  References: <5905.998586437@sss.pgh.pa.us> <Pine.BSO.4.10.10108231539470.10344-100000@spider.pilosoft.com>

* 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