Re: Improve eviction algorithm in ReorderBuffer
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>, Michael Paquier
<michael@paquier.xyz>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, Amit Kapila
<amit.kapila16@gmail.com>, vignesh C <vignesh21@gmail.com>, Peter Smith
<smithpb2250@gmail.com>, Tomas Vondra <tomas.vondra@enterprisedb.com>,
"Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, Shubham Khanna
<khannashubham1197@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-04-10T17:14:16Z
Lists: pgsql-hackers
On Wed, 2024-04-10 at 08:30 +0300, Heikki Linnakangas wrote: > My #1 choice would be to write a patch to switch the pairing heap, > performance test that, and revert the binary heap changes. Sounds good to me. I would expect it to perform better than the extra hash table, if anything. It also has the advantage that we don't change the API for binaryheap in 17. Regards, Jeff Davis
Commits
-
Revert indexed and enlargable binary heap implementation.
- 810f64a01567 17.0 landed
-
Replace binaryheap + index with pairingheap in reorderbuffer.c
- efb8acc0d058 17.0 landed
-
Improve eviction algorithm in ReorderBuffer using max-heap for many subtransactions.
- 5bec1d6bc5e3 17.0 landed
-
Add functions to binaryheap for efficient key removal and update.
- b84050864415 17.0 landed
-
Make binaryheap enlargeable.
- bcb14f4abca0 17.0 landed