Skip site navigation (1) Skip section navigation (2)

Re: array_to_column function

From: Joe Conway <mail(at)joeconway(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Markus Bertheau <twanger(at)bluetwanger(dot)de>,PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: array_to_column function
Date: 2004-10-31 21:51:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
David Fetter wrote:
> On Sat, Oct 30, 2004 at 11:55:48PM +0200, Markus Bertheau wrote:
>>You want to see that function distributed with PostgreSQL?  It would
>>probably have to be implemented in C then, because PL/pgSQL-support
>>has to be explicitly "enabled" for every database.
> Yes, that would be good.  It would be nice to have some symmetry with
> the ARRAY() function.  Also, it would be a handy thing for doing
> column-like operations (aggregates, e.g.) on 1-D arrays :)

This has actually been discussed and rejected nearly two years ago -- 
see this thread:

Later, Peter Eisentraut pointed out that there is actually a 
spec-compliant way (UNNEST) to achieve the same result -- see this thread:

I have the beginnings (at least) of a C function to do this somewhere, 
but have obviously not been able to find the time to implement it (yet). 
If you want to pursue this functionality for 8.1, UNNEST support is the 
way to go.


In response to

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2004-10-31 21:52:00
Subject: Re: make check error on -HEAD
Previous:From: Tom LaneDate: 2004-10-31 20:53:16
Subject: Re: Problems with pgxs

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group