* Gregory Stark ([EMAIL PROTECTED]) wrote:
> "Robert Haas" <[EMAIL PROTECTED]> writes:
> > CREATE AGGREGATE array_accum (anyelement)
> >
> > CREATE OR REPLACE FUNCTION array_enum(anyarray)
> 
> Have you actually tried these functions on large data sets? They're not in the
> same performance league as intagg. Your array_accum is O(n^2)!

array_accum itself may also end up in core, if I have my dithers.  It
makes psql's job to display column-level privs in a nice way alot
easier, and there's been quite a few cases where I've used it outside of
that, along with others.  It'd be nice to have there.

That said, once it's in, we really need to rework it to not suck(tm).  I
wrote a patch to do just that quite some time ago, but it required some
things in core that were ugly to expose to any aggregation function (as
I recall).  If we made that only available to built-in's, then we might
be able to have array_accum in core *and* have it be fast. :)

It's a goal anyway.

        Thanks,

                Stephen

Attachment: signature.asc
Description: Digital signature

Reply via email to