summaryrefslogtreecommitdiff
path: root/src/include/utils/int8.h
diff options
context:
space:
mode:
authorTom Lane2014-04-13 00:33:09 +0000
committerTom Lane2014-04-13 00:33:09 +0000
commit9d229f399e87d2ae7132c2e8feef317ce1479728 (patch)
treef808e533fa6b89202733e2b8666361dc5482ca97 /src/include/utils/int8.h
parenta9d9acbf219b9e96585779cd5f99d674d4ccba74 (diff)
Provide moving-aggregate support for a bunch of numerical aggregates.
First installment of the promised moving-aggregate support in built-in aggregates: count(), sum(), avg(), stddev() and variance() for assorted datatypes, though not for float4/float8. In passing, remove a 2001-vintage kluge in interval_accum(): interval array elements have been properly aligned since around 2003, but nobody remembered to take out this workaround. Also, fix a thinko in the opr_sanity tests for moving-aggregate catalog entries. David Rowley and Florian Pflug, reviewed by Dean Rasheed
Diffstat (limited to 'src/include/utils/int8.h')
-rw-r--r--src/include/utils/int8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/int8.h b/src/include/utils/int8.h
index d63e3a9a5a4..0e4b9499467 100644
--- a/src/include/utils/int8.h
+++ b/src/include/utils/int8.h
@@ -74,8 +74,10 @@ extern Datum int8div(PG_FUNCTION_ARGS);
extern Datum int8abs(PG_FUNCTION_ARGS);
extern Datum int8mod(PG_FUNCTION_ARGS);
extern Datum int8inc(PG_FUNCTION_ARGS);
+extern Datum int8dec(PG_FUNCTION_ARGS);
extern Datum int8inc_any(PG_FUNCTION_ARGS);
extern Datum int8inc_float8_float8(PG_FUNCTION_ARGS);
+extern Datum int8dec_any(PG_FUNCTION_ARGS);
extern Datum int8larger(PG_FUNCTION_ARGS);
extern Datum int8smaller(PG_FUNCTION_ARGS);