postgresql/src/backend
Jeff Davis a547e68675 Adjust cost model for HashAgg that spills to disk.
Tomas Vondra observed that the IO behavior for HashAgg tends to be
worse than for Sort. Penalize HashAgg IO costs accordingly.

Also, account for the CPU effort of spilling the tuples and reading
them back.

Discussion: https://postgr.es/m/20200906212112.nzoy5ytrzjjodpfh@development
Reviewed-by: Tomas Vondra
Backpatch-through: 13
2020-09-07 13:31:59 -07:00
..
access Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
bootstrap Improve some ancient, crufty code in bootstrap + initdb. 2020-09-05 16:20:04 -04:00
catalog Fix misleading error message about inconsistent moving-aggregate types. 2020-09-06 12:55:13 -04:00
commands Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
executor Be more careful about the shape of hashable subplan clauses. 2020-08-14 22:14:03 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Fix a few typos in JIT comments and README 2020-08-21 09:33:56 +12:00
lib Use pg_bitutils for HyperLogLog. 2020-07-30 09:14:23 -07:00
libpq Refactor pg_get_line() to expose an alternative StringInfo-based API. 2020-09-06 14:13:19 -04:00
main Clean up includes of s_lock.h. 2020-06-18 19:41:05 -07:00
nodes Remove variable "concurrent" from ReindexStmt 2020-09-04 10:43:32 +09:00
optimizer Adjust cost model for HashAgg that spills to disk. 2020-09-07 13:31:59 -07:00
parser Clarify comments in enforce_generic_type_consistency(). 2020-09-07 14:52:33 -04:00
partitioning Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Add huge_page_size setting for use on Linux. 2020-07-17 14:33:00 +12:00
postmaster Avoid lockup of a parallel worker when reporting a long error message. 2020-09-03 16:52:09 -04:00
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Fix over-eager ping'ing in logical replication receiver. 2020-09-04 20:33:36 -04:00
rewrite Redefine pg_class.reltuples to be -1 before the first VACUUM or ANALYZE. 2020-08-30 12:21:51 -04:00
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics Remove some more useless assignments. 2020-09-04 14:32:19 -04:00
storage Skip unnecessary stat() calls in walkdir(). 2020-09-07 18:28:06 +12:00
tcop Remove variable "concurrent" from ReindexStmt 2020-09-04 10:43:32 +09:00
tsearch Yet more elimination of dead stores and useless initializations. 2020-09-05 13:17:32 -04:00
utils Frob numeric.c loop so that clang will auto-vectorize it too. 2020-09-07 12:03:04 -04:00
.gitignore
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00