Add combine functions for various floating-point aggregates.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +20 −20 |
| src/backend/utils/adt/float.c | modified | +107 −0 |
| src/include/catalog/pg_aggregate.h | modified | +26 −26 |
| src/include/catalog/pg_proc.h | modified | +4 −0 |
| src/include/utils/builtins.h | modified | +2 −0 |