Re: Checkpoints stuck after a failed bulk write inside a savepoint

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: Joao Rito <joaovictor(dot)rito(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: Checkpoints stuck after a failed bulk write inside a savepoint
Date: 2026-11-20 08:00:49
Message-ID: av_-MfshcTAxlIPb@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 20, 2026 at 04:40:53PM +0900, Michael Paquier wrote:
> That's still not better than what's on HEAD, but it reduces the window
> of the useless syncs to be close to zero in practice, only when a
> checkpoint had the idea to run between the smgrregistersync() and the
> smgrregistersync() calls. And we don't lose track of the flag value
> due to the fact that we don't use it.

Ahem.. between the smgrregistersync() and the smgrimmedsync() calls.
Bad copy-paste.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2026-11-20 08:04:19 Re: pg_restore fails on extracted tar archives with large objects
Previous Message Michael Paquier 2026-11-20 07:56:54 Re: Assert "target_wal_endrec == divergerec" in pg_rewind