git.postgresql.org Git - postgresql.git/commit
2017年3月27日 03:20:54 +0000 (04:20 +0100)
2017年3月27日 03:20:54 +0000 (04:20 +0100)
commit b5635948ab165b6070e7d05d111f966e07570d81
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
22 files changed:
This is the main PostgreSQL git repository.
RSS
Atom