]> granicus.if.org Git - postgresql/commit
Fix parallel-safety code for parallel aggregation.
authorRobert Haas <rhaas@postgresql.org>
Tue, 5 Apr 2016 20:06:15 +0000 (16:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 5 Apr 2016 20:06:15 +0000 (16:06 -0400)
commit41ea0c23761ca108e2f08f6e3151e3cb1f9652a1
tree7872e32b41314042e081bb8435379e55d5148cff
parent09adc9a8c09c9640de05c7023b27fb83c761e91c
Fix parallel-safety code for parallel aggregation.

has_parallel_hazard() was ignoring the proparallel markings for
aggregates, which is no good.  Fix that.  There was no way to mark
an aggregate as actually being parallel-safe, either, so add a
PARALLEL option to CREATE AGGREGATE.

Patch by me, reviewed by David Rowley.
doc/src/sgml/ref/create_aggregate.sgml
src/backend/catalog/pg_aggregate.c
src/backend/commands/aggregatecmds.c
src/backend/commands/functioncmds.c
src/backend/optimizer/util/clauses.c
src/include/catalog/pg_aggregate.h
src/test/regress/expected/create_aggregate.out
src/test/regress/sql/create_aggregate.sql