pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Check for interrupts during non-fast-update GIN insertion
Date: Fri, 13 Mar 2026 13:14:03 +0000
Message-ID: <E1w12L5-003lov-0c@gemulon.postgresql.org> (raw)

Check for interrupts during non-fast-update GIN insertion

ginExtractEntries() can produce a lot of entries for a single item.
During index build, we check for interrupts between entries, and the
fast-update codepath does it as part of vacuum_delay_point(), but the
non-fast update insertion codepath was uninterruptible. Add
CHECK_FOR_INTERRUPTS() between entries in the non-fast update codepath
too.

Author: Vinod Sridharan <vsridh90@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAFMdLD6mQvAuStiOGvBJxAEfo6wdjZhj3+JveTLxOX8MVn4zmA@mail.gmail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e1dcf8c5424309305182af4700314cf59bab6b0

Modified Files
--------------
src/backend/access/gin/gininsert.c | 4 ++++
1 file changed, 4 insertions(+)



Message-ID: <E1w12L5-003lov-0c@gemulon.postgresql.org>
Permalink:  ../E1w12L5-003lov-0c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w12L5-003lov-0c@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: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Check for interrupts during non-fast-update GIN insertion
  In-Reply-To: <E1w12L5-003lov-0c@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