pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Reset, not recreate, execGrouping.c style hashtables.
2+ messages / 1 participants
[nested] [flat]
* pgsql: Reset, not recreate, execGrouping.c style hashtables.
@ 2019-02-09 09:38 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 2+ messages in thread
From: Andres Freund @ 2019-02-09 09:38 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Reset, not recreate, execGrouping.c style hashtables.
This uses the facility added in the preceding commit to fix
performance issues caused by rebuilding the hashtable (with its
comparator expression being the most expensive bit), after every
reset. That's especially important when the comparator is JIT
compiled.
Bug: #15592 #15486
Reported-By: Jakub Janeček, Dmitry Marakasov
Author: Andres Freund
Discussion:
https://postgr.es/m/15486-05850f065da42931@postgresql.org
https://postgr.es/m/20190114180423.ywhdg2iagzvh43we@alap3.anarazel.de
Backpatch: 11, where I broke this in bf6c614a2f2c5
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/356687bd825e5ca7230d43c1bffe7a59ad2e77bd
Modified Files
--------------
src/backend/executor/nodeAgg.c | 34 ++++++++++--------
src/backend/executor/nodeRecursiveunion.c | 27 ++++++++-------
src/backend/executor/nodeSetOp.c | 25 +++++++-------
src/backend/executor/nodeSubplan.c | 57 ++++++++++++++++++-------------
4 files changed, 79 insertions(+), 64 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Reset, not recreate, execGrouping.c style hashtables.
@ 2019-02-09 09:38 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 2+ messages in thread
From: Andres Freund @ 2019-02-09 09:38 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Reset, not recreate, execGrouping.c style hashtables.
This uses the facility added in the preceding commit to fix
performance issues caused by rebuilding the hashtable (with its
comparator expression being the most expensive bit), after every
reset. That's especially important when the comparator is JIT
compiled.
Bug: #15592 #15486
Reported-By: Jakub Janeček, Dmitry Marakasov
Author: Andres Freund
Discussion:
https://postgr.es/m/15486-05850f065da42931@postgresql.org
https://postgr.es/m/20190114180423.ywhdg2iagzvh43we@alap3.anarazel.de
Backpatch: 11, where I broke this in bf6c614a2f2c5
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/35afccaba6d0e0aa14e3d1f859e6d84e69aee2cc
Modified Files
--------------
src/backend/executor/nodeAgg.c | 34 ++++++++++--------
src/backend/executor/nodeRecursiveunion.c | 27 ++++++++-------
src/backend/executor/nodeSetOp.c | 25 +++++++-------
src/backend/executor/nodeSubplan.c | 57 ++++++++++++++++++-------------
4 files changed, 79 insertions(+), 64 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-02-09 09:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09 09:38 pgsql: Reset, not recreate, execGrouping.c style hashtables. Andres Freund <andres@anarazel.de>
2019-02-09 09:38 pgsql: Reset, not recreate, execGrouping.c style hashtables. Andres Freund <andres@anarazel.de>
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