postgresql/contrib/postgres_fdw
Andrew Gierth b5635948ab Support hashed aggregation with grouping sets.
This extends the Aggregate node with two new features: HashAggregate
can now run multiple hashtables concurrently, and a new strategy
MixedAggregate populates hashtables while doing sorted grouping.

The planner will now attempt to save as many sorts as possible when
planning grouping sets queries, while not exceeding work_mem for the
estimated combined sizes of all hashtables used.  No SQL-level changes
are required.  There should be no user-visible impact other than the
new EXPLAIN output and possible changes to result ordering when ORDER
BY was not used (which affected a few regression tests).  The
enable_hashagg option is respected.

Author: Andrew Gierth
Reviewers: Mark Dilger, Andres Freund
Discussion: https://postgr.es/m/87vatszyhj.fsf@news-spur.riddles.org.uk
2017-03-27 04:20:54 +01:00
..
expected Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
sql postgres_fdw: Push down FULL JOINs with restriction clauses. 2017-03-16 13:34:59 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile Allow postgres_fdw to ship extension funcs/operators for remote execution. 2015-11-03 18:42:18 -05:00
connection.c chomp PQerrorMessage() in backend uses 2017-02-27 08:54:51 -05:00
deparse.c postgres_fdw: Push down FULL JOINs with restriction clauses. 2017-03-16 13:34:59 -04:00
option.c Move some things from builtins.h to new header files 2017-01-20 20:29:53 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h postgres_fdw: Push down FULL JOINs with restriction clauses. 2017-03-16 13:34:59 -04:00
shippable.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00