Create AVG() aggregates for int8 and NUMERIC which do not compute X^2,
Bruce Momjian <bruce@momjian.us>
Create AVG() aggregates for int8 and NUMERIC which do not compute X^2, as a performance enhancement. Mark Kirkwood
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/numeric.c | modified | +65 −4 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_aggregate.h | modified | +3 −3 |
| src/include/catalog/pg_proc.h | modified | +5 −1 |
| src/include/utils/builtins.h | modified | +3 −1 |
| src/test/regress/expected/create_aggregate.out | modified | +3 −3 |
| src/test/regress/sql/create_aggregate.sql | modified | +3 −3 |