]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add TAP tests for log_lock_waits
authorFujii Masao <fujii@postgresql.org>
Mon, 6 Apr 2026 14:49:40 +0000 (23:49 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 6 Apr 2026 14:49:40 +0000 (23:49 +0900)
commitca2b5443e2dcfc09692fd7b93753890b0b9633d2
treef02abc667fdc2775c2fddeb8165814c2207fb524
parent93dc1ace2007fe7c1103ccda3d7bc13b4eb4352f
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
src/test/modules/test_misc/t/011_lock_stats.pl