Re: Possible bug with array_agg

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Scott Bailey <artacus(at)comcast(dot)net>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Possible bug with array_agg
Date: 2009-11-19 19:30:42
Message-ID: 162867790911191130r4a3a22c9yc7fbf7cc8118576d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2009/11/19 Scott Bailey <artacus(at)comcast(dot)net>:
> On 8.4.0 I found that array_agg does not return a value when fed more than
> 12,000 values. (12,000 worked and 13,000 did not.)
>

can you send a query?

postgres=# create table f(a int);
CREATE TABLE
postgres=# insert into f select * from generate_series(1,100000);
INSERT 0 100000
postgres=# select count(*) from (select unnest(array_agg(a)) from f) s;
count
--------
100000
(1 row)

it's look well

Regards
Pavel Stehule

> Probably not a big deal because its not something you would typically do. I
> was testing something else and ran into it. But if there is a limit there,
> we should probably document it.
>
> Scott Bailey
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-11-19 19:36:02 Re: Possible bug with array_agg
Previous Message Sam Mason 2009-11-19 19:03:01 Re: obtaining ARRAY position for a given match