pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid fragmentation of logical tapes when writing concurrently.
Date: Wed, 27 May 2020 00:24:39 +0000
Message-ID: <E1jdjs7-0007vb-Sq@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1jdjs7-0007vb-Sq@gemulon.postgresql.org>
Permalink:  ../E1jdjs7-0007vb-Sq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jdjs7-0007vb-Sq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Avoid fragmentation of logical tapes when writing concurrently.
  In-Reply-To: <E1jdjs7-0007vb-Sq@gemulon.postgresql.org>
  References: <E1jdjs7-0007vb-Sq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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