pgsql: Avoid fragmentation of logical tapes when writing concurrently.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid fragmentation of logical tapes when writing concurrently.
Date: 2020-05-27 00:24:39
Message-ID: E1jdjs7-0007vb-Sq@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid fragmentation of logical tapes when writing concurrently.

Disk-based HashAgg relies on writing to multiple tapes
concurrently. Avoid fragmentation of the tapes' blocks by
preallocating many blocks for a tape at once. No file operations are
performed during preallocation; only the block numbers are reserved.

Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/20200519151202.u2p2gpiawoaznsv2%40development

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/896ddf9b3cd7dcf70e43f733ae8fec5dfe6e31af

Modified Files
--------------
src/backend/utils/sort/logtape.c | 80 ++++++++++++++++++++++++++++++++++++++--
1 file changed, 77 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-05-27 14:09:10 pgsql: Remove some tabs in SQL code in C string literals
Previous Message Peter Eisentraut 2020-05-26 14:05:44 pgsql: Message wording tweaks