Re: Progress reporting: a debug trace and a test framework

From: Manu <manuelreyesbravo(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Alvaro Herrera <alvherre(at)kurilemu(dot)de>, Michael Paquier <michael(at)paquier(dot)xyz>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Subject: Re: Progress reporting: a debug trace and a test framework
Date: 2026-12-06 05:45:33
Message-ID: 179653593373.3238853.10733449413181420010@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

v8, attached, is rebased on master (8d90516d76d).

With PROGRESS_DEBUG, the previous version no longer passes there:
one subtest of 001 fails. Its check of the wait for old snapshots in
CREATE INDEX CONCURRENTLY required lockers_total to stay set when the
wait is over. That is the behavior 3e26b3cb251 fixed, so the test
had encoded the bug.

In v8, 001 counts the old snapshots on the values reported before
the reset, and a new subtest requires the reset, as the one for the
wait for writers already did. Reverting 3e26b3cb251 makes that
subtest fail, and no other. The rest of the series is unchanged.

check-world passes without PROGRESS_DEBUG, with it, and with it plus
trace_progress on in every test server.

3e26b3cb251, 99ea4a55270 and 3be29d9346d fixed problems that showed
up in this trace.

Regards,
Manu

Attachment Content-Type Size
v8-0001-Add-PROGRESS_DEBUG-to-test-the-whole-sequence-of-.patch text/x-patch 119.0 KB
v8-0002-Check-the-documented-progress-phases-against-the-.patch text/x-patch 12.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2026-12-06 07:18:48 Re: extremely slow planner when DISTINCT clause holds more columns
Previous Message Manu 2026-12-06 05:01:36 Rebuild partition descriptors from the previous one