postgresql/src/backend/catalog
Tom Lane 05ca21b878 Fix type checking for support functions of parallel VARIADIC aggregates.
The impact of VARIADIC on the combine/serialize/deserialize support
functions of an aggregate wasn't thought through carefully.  There is
actually no impact, because variadicity isn't passed through to these
functions (and it doesn't seem like it would need to be).  However,
lookup_agg_function was mistakenly told to check things as though it were
passed through.  The net result was that it was impossible to declare an
aggregate that had both VARIADIC input and parallelism support functions.

In passing, fix a runtime check in nodeAgg.c for the combine function's
strictness to make its error message agree with the creation-time check.
The previous message was actually backwards, and it doesn't seem like
there's a good reason to have two versions of this message text anyway.

Back-patch to 9.6 where parallel aggregation was introduced.

Alexey Bashtanov; message fix by me

Discussion: https://postgr.es/m/f86dde87-fef4-71eb-0480-62754aaca01b@imap.cc
2018-05-15 15:06:53 -04:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
Catalog.pm Restrict vertical tightness to parentheses in Perl code 2018-05-09 10:14:46 -04:00
Makefile Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
aclchk.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
catalog.c Do not select new object OIDs that match recently-dead entries. 2018-04-11 17:41:22 -04:00
dependency.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
genbki.pl Write error messages about duplicate OIDs to stderr 2018-04-30 14:18:46 -04:00
heap.c Reorganize partitioning code 2018-04-14 21:12:14 -03:00
index.c Count heap tuples in non-SnapshotAny path in IndexBuildHeapRangeScan(). 2018-05-08 00:20:19 -04:00
indexing.c Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
information_schema.sql Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
namespace.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
objectaccess.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
objectaddress.c Clean up warnings from -Wimplicit-fallthrough. 2018-05-01 19:35:08 -04:00
partition.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_aggregate.c Fix type checking for support functions of parallel VARIADIC aggregates. 2018-05-15 15:06:53 -04:00
pg_collation.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_constraint.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_conversion.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_db_role_setting.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_depend.c Local partitioned indexes 2018-01-19 11:49:22 -03:00
pg_enum.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_inherits.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_largeobject.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_namespace.c Replace GrantObjectType with ObjectType 2018-01-19 14:01:14 -05:00
pg_operator.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_proc.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_publication.c Logical replication support for TRUNCATE 2018-04-07 11:34:11 -04:00
pg_range.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_shdepend.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_subscription.c Split the SetSubscriptionRelState function into two 2018-04-06 10:00:26 -04:00
pg_type.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
sql_feature_packages.txt > I have installed your patch and adjusted the names of the standards 2004-12-02 22:51:28 +00:00
sql_features.txt Revert MERGE patch 2018-04-12 11:22:56 +01:00
storage.c Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
system_views.sql Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
toasting.c Rename IndexInfo.ii_KeyAttrNumbers array 2018-04-12 13:02:45 +03:00