pgsql: Logical Tape Set: use min heap for freelist.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Logical Tape Set: use min heap for freelist.
Date: 2020-02-06 18:30:06
Message-ID: E1izlug-0004d8-Mr@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Logical Tape Set: use min heap for freelist.

Previously, the freelist of blocks was tracked as an
occasionally-sorted array. A min heap is more resilient to larger
freelists or more frequent changes between reading and writing.

Discussion: https://postgr.es/m/97c46a59c27f3c38e486ca170fcbc618d97ab049.camel%40j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c02fdc9223015c5c386abfa00c47fc7f4c845161

Modified Files
--------------
src/backend/utils/sort/logtape.c | 160 +++++++++++++++++++++++++--------------
1 file changed, 104 insertions(+), 56 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2020-02-06 20:09:07 pgsql: Refactor hash_agg_entry_size().
Previous Message Fujii Masao 2020-02-06 16:13:43 pgsql: Add note about access permission checks by inherited TRUNCATE an