pgsql: Reset progress counters at end of WaitForOlderSnapshots()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reset progress counters at end of WaitForOlderSnapshots()
Date: 2026-11-24 05:22:23
Message-ID: E1xViz1-000000006Wb-0ayG@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Previous Message shihao zhong 2026-11-24 03:32:18 Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned