mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
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
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.238 2004/05/14 21:42:30 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.239 2004/05/26 15:26:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -68,6 +68,8 @@ extern Datum istrue(PG_FUNCTION_ARGS);
|
||||
extern Datum isfalse(PG_FUNCTION_ARGS);
|
||||
extern Datum isnottrue(PG_FUNCTION_ARGS);
|
||||
extern Datum isnotfalse(PG_FUNCTION_ARGS);
|
||||
extern Datum booland_statefunc(PG_FUNCTION_ARGS);
|
||||
extern Datum boolor_statefunc(PG_FUNCTION_ARGS);
|
||||
|
||||
/* char.c */
|
||||
extern Datum charin(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user