From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reset progress counters at end of WaitForOlderSnapshots()
Date: Tue, 24 Nov 2026 05:22:23 +0000
Message-ID: <E1xViz1-000000006Wb-0ayG@gemulon.postgresql.org> (raw)
Reset progress counters at end of WaitForOlderSnapshots()
WaitForOlderSnapshots() reports lockers_total, lockers_done and
current_locker_pid while it waits, leaving them set when the wait is
done. A follow-up wait could inherit stale values, leading to some
temporary glitches in the progress view.
Like WaitForLockersMultiple(), the counters are now reset when leaving
WaitForOlderSnapshots().
Oversight in ab0dfc961b6. No backpatch is done, as this is cosmetic.
Author: Manu <manuelreyesbravo@gmail.com>
Discussion: https://postgr.es/m/179489308882.313551.16760472116841542703@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3e26b3cb25149e5d9ab4322a750317475211cd21
Modified Files
--------------
src/backend/commands/indexcmds.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
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: michael@paquier.xyz
Subject: Re: pgsql: Reset progress counters at end of WaitForOlderSnapshots()
In-Reply-To: <E1xViz1-000000006Wb-0ayG@gemulon.postgresql.org>
References: <E1xViz1-000000006Wb-0ayG@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