Re: is 8.4 array_agg() supposed to work with array values?

From: "Greg Stark" <stark(at)enterprisedb(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, "Todd A(dot) Cook" <tcook(at)blackducksoftware(dot)com>
Subject: Re: is 8.4 array_agg() supposed to work with array values?
Date: 2009-01-20 13:50:03
Message-ID: 4136ffa0901200550s7a571d84nb0f2985cf654cd52@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 20, 2009 at 5:09 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> This would work much
> better if integer[][] where "array of integer[]", in the same way as
> integer[] is "array of integer", in the way C deals with arrays.

Well the situation in C is substantially more complicated than you
make out. I think the analogous situation in C is actually having an
array of integer* pointing to separately allocated arrays.

There are a number of places where Postgres has to special-case arrays
and array references (think of "update foo set bar[n] = baz" for
example) so I don't think it would work to just create the array type
for integer[] either.

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2009-01-20 14:51:16 Re: [BUGS] BUG #4186: set lc_messages does not work
Previous Message Alvaro Herrera 2009-01-20 12:23:30 Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11)