dbTalk Databases Forums  

pgsql-server: The added aggregates are: (1) boolean-and and boolean-or

comp.databases.postgresql.committers comp.databases.postgresql.committers


Discuss pgsql-server: The added aggregates are: (1) boolean-and and boolean-or in the comp.databases.postgresql.committers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Momjian
 
Posts: n/a

Default pgsql-server: The added aggregates are: (1) boolean-and and boolean-or - 05-26-2004 , 10:26 AM






Log Message:
-----------
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.
Also add 'every' aggregate.

(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.

Fabien COELHO

Modified Files:
--------------
pgsql-server/doc/src/sgml:
func.sgml (r1.203 -> r1.204)
(http://developer.postgresql.org/cvsw...1.203&r2=1.204)
pgsql-server/src/backend/utils/adt:
bool.c (r1.32 -> r1.33)
(http://developer.postgresql.org/cvsw...1=1.32&r2=1.33)
pgsql-server/src/include/catalog:
catversion.h (r1.230 -> r1.231)
(http://developer.postgresql.org/cvsw...1.230&r2=1.231)
pg_aggregate.h (r1.42 -> r1.43)
(http://developer.postgresql.org/cvsw...1=1.42&r2=1.43)
pg_proc.h (r1.329 -> r1.330)
(http://developer.postgresql.org/cvsw...1.329&r2=1.330)
pgsql-server/src/include/utils:
builtins.h (r1.238 -> r1.239)
(http://developer.postgresql.org/cvsw...1.238&r2=1.239)
pgsql-server/src/test/regress/expected:
aggregates.out (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsw...1=1.10&r2=1.11)
pgsql-server/src/test/regress/sql:
aggregates.sql (r1.8 -> r1.9)
(http://developer.postgresql.org/cvsw...?r1=1.8&r2=1.9)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.