Add combine functions for various floating-point aggregates.
authorRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2016 17:44:50 +0000 (13:44 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2016 17:47:06 +0000 (13:47 -0400)
commitaf025eed536d3842d085ed9e4f9107eb976575cc
tree52b699d97297e8e23ae12e7fc81a879711f80455
parent38627f687823eae57e932c3b234656342403e909
Add combine functions for various floating-point aggregates.

This allows parallel aggregation to use them.  It may seem surprising
that we use float8_combine for both float4_accum and float8_accum
transition functions, but that's because those functions differ only
in the type of the non-transition-state argument.

Haribabu Kommi, reviewed by David Rowley and Tomas Vondra
doc/src/sgml/func.sgml
src/backend/utils/adt/float.c
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h