Re: array functions - request for opinions (was Re: [PATCHES] array - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: array functions - request for opinions (was Re: [PATCHES] array
Date
Msg-id Pine.LNX.4.44.0305260115110.1897-100000@peter.localdomain
Whole thread Raw
In response to array functions - request for opinions (was Re: [PATCHES] array support patch phase 1 patch)  (Joe Conway <mail@joeconway.com>)
Responses Re: array functions - request for opinions (was Re: [PATCHES]
List pgsql-hackers
Joe Conway writes:

> >>And in any case, array_accum() is intended to be used for building
> >>custom aggregates, so that needs to be documented.
> > Can you give an example of an aggregate or a class of aggregates where
> > this would be useful?

> There are many discussions on the lists over the past few years in which
> people have requested this kind of functionality. There is even a
> contrib/intagg that does this for integers only. I don't think there is
> any question that there is a demand for the feature. Some examples:

These applications should use an empty array as initial value.  Then the
normal array concatenation can be used as transition function.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Michael Brusser
Date:
Subject: Re: vacuum analyze corrupts database
Next
From: Tom Lane
Date:
Subject: Re: Domain breakage