From: | "Sokolov Yura" <funny(dot)falcon(at)gmail(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #3852: Could not create complex aggregate |
Date: | 2008-01-06 08:57:03 |
Message-ID: | 200801060857.m068v38H045938@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
The following bug has been logged online:
Bug reference: 3852
Logged by: Sokolov Yura
Email address: funny(dot)falcon(at)gmail(dot)com
PostgreSQL version: 8.3beta4
Operating system: Linux Debian 4.0rel2
Description: Could not create complex aggregate
Details:
Possibly it's not an error, then how can I make such aggregate?
create or replace function add_group(grp anyarray, ad anyelement, size int4)
returns anyarray
language plpgsql
as $$
begin
if array_upper(grp, 1) < size then
return grp||ad;
end if;
return grp;
end;
$$ immutable;
create aggregate build_group(anyelement, int4) (
SFUNC= add_group,
STYPE = anyarray
);
> ERROR: argument declared "anyarray" is not an array but type anyarray
> SQL State:42804
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-01-06 19:44:47 | Re: BUG #3852: Could not create complex aggregate |
Previous Message | Tom Lane | 2008-01-05 22:13:04 | Re: pg_dump produces invalid SQL for "group by cast(null as numeric)" |
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2008-01-06 09:50:12 | Re: Bug: Unreferenced temp tables disables vacuum to update xid |
Previous Message | Joshua D. Drake | 2008-01-06 08:40:56 | Bug: Unreferenced temp tables disables vacuum to update xid |