Add parallel query support functions for assorted aggregates.
authorRobert Haas <rhaas@postgresql.org>
Tue, 5 Apr 2016 18:24:59 +0000 (14:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 5 Apr 2016 18:32:53 +0000 (14:32 -0400)
commit11c8669c0cc7abc7a7702594cf13452c378d2517
treeaaea45448541428b702586fca7e30bec284f8c9a
parent7117685461af50f50c03f43e6a622284c8d54694
Add parallel query support functions for assorted aggregates.

This lets us use parallel aggregate for a variety of useful cases
that didn't work before, like sum(int8), sum(numeric), several
versions of avg(), and various other functions.

Add some regression tests, as well, testing the general sanity of
these and future catalog entries.

David Rowley, reviewed by Tomas Vondra, with a few further changes
by me.
src/backend/utils/adt/numeric.c
src/backend/utils/adt/timestamp.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/include/utils/timestamp.h
src/test/regress/expected/create_aggregate.out
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/create_aggregate.sql
src/test/regress/sql/opr_sanity.sql