pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow _h_indexbuild() to be interrupted.
Date: Fri, 13 Sep 2024 20:17:17 +0000
Message-ID: <E1spCjF-000yme-8Q@gemulon.postgresql.org> (raw)

Allow _h_indexbuild() to be interrupted.

When we are building a hash index that is large enough to need
pre-sorting (larger than either maintenance_work_mem or NBuffers),
the initial sorting phase is interruptible, but the insertion
phase wasn't.  Add the missing CHECK_FOR_INTERRUPTS().

Per bug #18616 from Alexander Lakhin.  Back-patch to all
supported branches.

Pavel Borisov

Discussion: https://postgr.es/m/18616-acbb9e5caf41e964@postgresql.org

Branch
------
REL_16_STABLE

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

Modified Files
--------------
src/backend/access/hash/hashsort.c | 3 +++
1 file changed, 3 insertions(+)



view thread (7+ messages)

Message-ID: <E1spCjF-000yme-8Q@gemulon.postgresql.org>
Permalink:  ../E1spCjF-000yme-8Q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1spCjF-000yme-8Q@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Allow _h_indexbuild() to be interrupted.
  In-Reply-To: <E1spCjF-000yme-8Q@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