Re: new aggregate functions v3

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: new aggregate functions v3
Date: 2004-05-19 00:40:21
Message-ID: 200405190040.i4J0eLQ25790@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


[ Use newest version.]

Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Fabien COELHO wrote:
>
> Dear patchers,
>
> please find attached my third patch submission for adding new aggregate
> functions. This new version adds a note and some indexes in the
> documentation about sql standard names for bool_and and bool_or, as
> suggested by Robert Treat. It also fixes conflicts created by the removal
> of shameful aclitem accessors.
>
> The added aggregates are:
>
> (1) boolean-and and boolean-or aggregates named bool_and and bool_or.
> they (SHOULD;-) correspond to standard sql every and some/any aggregates.
> they do not have the right name as there is a problem with
> the standard and the parser for some/any. Tom also think that
> the standard name is misleading because NULL are ignored.
>
> (2) bitwise integer aggregates named bit_and and bit_or for
> int2, int4, int8 and bit types. They are not standard, but I find
> them useful. I needed them once.
>
>
> The patches adds:
>
> - 2 new very short strict functions for boolean aggregates in
> src/backed/utils/adt/bool.c,
> src/include/utils/builtins.h and src/include/catalog/pg_proc.h
>
> - the new aggregates declared in src/include/catalog/pg_proc.h and
> src/include/catalog/pg_aggregate.h
>
> - some documentation and validation about these new aggregates.
>
>
> It also updates the catalog version. It validates for me.
>
> Have a nice day,
>
> --
> Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-05-19 00:44:02 Re: pgsql-server/src backend/main/main.c backend/p ...
Previous Message Bruce Momjian 2004-05-19 00:39:02 Re: Fixed directory locations in installs