The original implementation of polymorphic aggregates didn't really get the
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2008 18:39:41 +0000 (18:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jan 2008 18:39:41 +0000 (18:39 +0000)
commit789f1c96e7b21d3731eacddc97a0a5f87290b20f
tree734dfabc0f1bbe78acb4c47860b4e7ee6dc5ff76
parent3b66b2ee29e44cf3665e66015d4ad6e763fd8316
The original implementation of polymorphic aggregates didn't really get the
checking of argument compatibility right; although the problem is only exposed
with multiple-input aggregates in which some arguments are polymorphic and
some are not.  Per bug #3852 from Sokolov Yura.
src/backend/catalog/pg_aggregate.c
src/backend/executor/nodeAgg.c
src/backend/optimizer/util/clauses.c
src/backend/parser/parse_coerce.c
src/backend/parser/parse_func.c
src/backend/parser/parse_oper.c
src/include/parser/parse_coerce.h
src/test/regress/expected/polymorphism.out
src/test/regress/sql/polymorphism.sql