postgresql/src/include/nodes
Tom Lane a9d9acbf21 Create infrastructure for moving-aggregate optimization.
Until now, when executing an aggregate function as a window function
within a window with moving frame start (that is, any frame start mode
except UNBOUNDED PRECEDING), we had to recalculate the aggregate from
scratch each time the frame head moved.  This patch allows an aggregate
definition to include an alternate "moving aggregate" implementation
that includes an inverse transition function for removing rows from
the aggregate's running state.  As long as this can be done successfully,
runtime is proportional to the total number of input rows, rather than
to the number of input rows times the average frame length.

This commit includes the core infrastructure, documentation, and regression
tests using user-defined aggregates.  Follow-on commits will update some
of the built-in aggregates to use this feature.

David Rowley and Florian Pflug, reviewed by Dean Rasheed; additional
hacking by me
2014-04-12 12:03:30 -04:00
..
bitmapset.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
execnodes.h Create infrastructure for moving-aggregate optimization. 2014-04-12 12:03:30 -04:00
makefuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
memnodes.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
nodeFuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
nodes.h Introduce replication slots. 2014-01-31 22:45:36 -05:00
params.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
parsenodes.h Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
pg_list.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
plannodes.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
primnodes.h Fix non-equivalence of VARIADIC and non-VARIADIC function call formats. 2014-04-03 22:02:24 -04:00
print.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
readfuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relation.h Add comment that ec_relids excludes "child" EquivalenceClass members. 2014-03-05 16:00:33 -05:00
replnodes.h Introduce replication slots. 2014-01-31 22:45:36 -05:00
tidbitmap.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
value.h Update copyright for 2014 2014-01-07 16:05:30 -05:00