pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Adjust cost model for HashAgg that spills to disk. 2+ messages / 1 participants [nested] [flat]
* pgsql: Adjust cost model for HashAgg that spills to disk. @ 2020-09-07 20:39 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Jeff Davis @ 2020-09-07 20:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a547e6867527ca16628a3fb1cf3ef6f785210a31 Modified Files -------------- src/backend/optimizer/path/costsize.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Adjust cost model for HashAgg that spills to disk. @ 2020-09-07 20:45 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Jeff Davis @ 2020-09-07 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b61d048e0d480f4311c62bf3026879c83ba9aaad Modified Files -------------- src/backend/optimizer/path/costsize.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-09-07 20:45 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-07 20:39 pgsql: Adjust cost model for HashAgg that spills to disk. Jeff Davis <jdavis@postgresql.org> 2020-09-07 20:45 pgsql: Adjust cost model for HashAgg that spills to disk. Jeff Davis <jdavis@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox