pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove ineffective heapam CHECK_FOR_INTERRUPTS().
Date: Mon, 09 Nov 2020 17:01:03 +0000
Message-ID: <E1kcAXP-00040O-Ra@gemulon.postgresql.org> (raw)

Remove ineffective heapam CHECK_FOR_INTERRUPTS().

Remove a CHECK_FOR_INTERRUPTS() call that could never actually handle an
interrupt.  We always have a heap page buffer lock at this point.
Having a useless CHECK_FOR_INTERRUPTS() call is harmless but misleading.

It is probably possible to work around the immediate problem by moving
the CHECK_FOR_INTERRUPTS() to before the heap page buffer lock is
acquired.  That isn't enough to make the function responsive to
interrupts, though.  The index AM caller will still hold an exclusive
buffer lock of its own.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/180cf876d457c260291af070d883c5db5033cb3a

Modified Files
--------------
src/backend/access/heap/heapam.c | 1 -
1 file changed, 1 deletion(-)



Message-ID: <E1kcAXP-00040O-Ra@gemulon.postgresql.org>
Permalink:  ../E1kcAXP-00040O-Ra@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kcAXP-00040O-Ra@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: pg@bowt.ie
  Subject: Re: pgsql: Remove ineffective heapam CHECK_FOR_INTERRUPTS().
  In-Reply-To: <E1kcAXP-00040O-Ra@gemulon.postgresql.org>
  References: <E1kcAXP-00040O-Ra@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