Re: [PATCH] Check interrupts while draining received WAL

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Nitin Jadhav <nitinjadhavpostgres(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Check interrupts while draining received WAL
Date: 2026-11-16 14:54:45
Message-ID: CAHGQGwHnCv2szbnON_0xP3Mk3v80ZnMNwKtppChi3ZaX_Xuqpg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 16, 2026 at 5:59 PM Nitin Jadhav
<nitinjadhavpostgres(at)gmail(dot)com> wrote:
> The attached patch adds CHECK_FOR_INTERRUPTS() at the start of each
> inner loop iteration so that shutdown requests are processed even when
> WAL is continuously available.

Thanks for the patch! It looks good to me.

We should backpatch it to all supported versions? If so, for v17 and older,
ProcessWalRcvInterrupts() should be called instead of CHECK_FOR_INTERRUPTS()?

Regards,

--
Fujii Masao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-11-16 15:10:44 Re: extension_control_path: ignore empty elements and deduplicate directories
Previous Message Matheus Alcantara 2026-11-16 14:50:19 Re: extension_control_path: ignore empty elements and deduplicate directories