postgresql/src/bin
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
..
initdb Remove MinGW readdir/errno bug workaround fixed on 2003-10-10 2014-03-21 13:47:37 -04:00
pg_basebackup Remove MinGW readdir/errno bug workaround fixed on 2003-10-10 2014-03-21 13:47:37 -04:00
pg_config Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_controldata Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_ctl Allow "-C variable" and "--describe-config" even to root users. 2014-04-04 22:03:35 -04:00
pg_dump Create infrastructure for moving-aggregate optimization. 2014-04-12 12:03:30 -04:00
pg_resetxlog Remove MinGW readdir/errno bug workaround fixed on 2003-10-10 2014-03-21 13:47:37 -04:00
pgevent Remove inappropriate EXPORTS line. 2014-02-19 21:08:50 -05:00
psql Fix some compiler warnings that clang emits with -pedantic. 2014-04-04 11:29:50 -04:00
scripts scripts: Remove newlines from end of generated SQL 2014-02-10 21:47:19 -05:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00