Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-11 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> I think we could make enforce_generic_type_consistency() clearer by >> adding an additional argument "bool allow_poly" which specifies >> whether polymorphic "actual" argument and result types are allowed. > This sounds like a reasonable

Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-09 Thread Sokolov Yura
Sorry for previous message having no comments. Just remark: These aggregates created successfuly both in 8.2 and 8.3beta4: CREATE AGGREGATE array_concat(anyarray) ( SFUNC=array_cat, STYPE=anyarray ); CREATE AGGREGATE array_build(anyelement) ( SFUNC=array_append, STYPE=anyarray ); But aggregate

Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-09 Thread Sokolov Yura
Tom Lane wrote: Joe Conway <[EMAIL PROTECTED]> writes: Did you want me to work on this? I could probably put some time into it this coming weekend. I'll try to get to it before that --- if no serious bugs come up this week, core is thinking of wrapping 8.3.0 at the end of the week, so

Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-07 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Did you want me to work on this? I could probably put some time into it > this coming weekend. I'll try to get to it before that --- if no serious bugs come up this week, core is thinking of wrapping 8.3.0 at the end of the week, so it'd be nice to have th

Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-07 Thread Joe Conway
Tom Lane wrote: "Sokolov Yura" <[EMAIL PROTECTED]> writes: create or replace function add_group(grp anyarray, ad anyelement, size int4) returns anyarray language plpgsql ... create aggregate build_group(anyelement, int4) ( SFUNC= add_group, STYPE = anyarray ); ERROR: argument declared

Re: [HACKERS] [BUGS] BUG #3852: Could not create complex aggregate

2008-01-06 Thread Tom Lane
"Sokolov Yura" <[EMAIL PROTECTED]> writes: > create or replace function add_group(grp anyarray, ad anyelement, size int4) > returns anyarray > language plpgsql > ... > create aggregate build_group(anyelement, int4) ( > SFUNC= add_group, > STYPE = anyarray > ); > ERROR: argument declared "any