pgsql: Add parallel query support functions for assorted aggregates.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add parallel query support functions for assorted aggregates.
Date: 2016-04-05 18:33:38
Message-ID: E1anVnG-0003Lg-4U@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/11c8669c0cc7abc7a7702594cf13452c378d2517

Modified Files
--------------
src/backend/utils/adt/numeric.c | 860 +++++++++++++++++++++++++
src/backend/utils/adt/timestamp.c | 49 ++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_aggregate.h | 108 ++--
src/include/catalog/pg_proc.h | 28 +
src/include/utils/builtins.h | 13 +
src/include/utils/timestamp.h | 1 +
src/test/regress/expected/create_aggregate.out | 91 ++-
src/test/regress/expected/opr_sanity.out | 97 ++-
src/test/regress/sql/create_aggregate.sql | 85 ++-
src/test/regress/sql/opr_sanity.sql | 62 +-
11 files changed, 1317 insertions(+), 79 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-04-05 18:35:57 Re: pgsql: Implement backup API functions for non-exclusive backups
Previous Message Magnus Hagander 2016-04-05 18:11:50 pgsql: Implement backup API functions for non-exclusive backups