agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add TAP tests for log_lock_waits
Date: Mon, 06 Apr 2026 14:50:43 +0000
Message-ID: <E1w9lHm-003F61-18@gemulon.postgresql.org> (raw)
Add TAP tests for log_lock_waits
This commit updates 011_lock_stats.pl to verify log_lock_waits behavior.
The tests check that messages are emitted both when a wait occurs and
when the lock is acquired, and that the "still waiting for" message is logged
exactly once per wait, even if the backend wakes up during the wait.
The latter covers the behavior introduced by commit fd6ecbfa75f.
Author: Hüseyin Demir <huseyin.d3r@gmail.com>
Co-authored-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAB5wL7YB1my9W5k5i=SY+=sTjeozyJ0YkvGXrVfeDNzuRkoTPg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ca2b5443e2dcfc09692fd7b93753890b0b9633d2
Modified Files
--------------
src/test/modules/test_misc/t/011_lock_stats.pl | 69 +++++++++++++++++++++++++-
1 file changed, 68 insertions(+), 1 deletion(-)
Message-ID: <E1w9lHm-003F61-18@gemulon.postgresql.org>
Permalink: ../E1w9lHm-003F61-18@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1w9lHm-003F61-18@gemulon.postgresql.org
reply
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add TAP tests for log_lock_waits
In-Reply-To: <E1w9lHm-003F61-18@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox