]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve stability of subscription/029_on_error.pl
authorMichael Paquier <michael@paquier.xyz>
Fri, 24 May 2024 02:21:27 +0000 (11:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 24 May 2024 02:21:27 +0000 (11:21 +0900)
commit338fb8714c6cfe30c567ecb79812ec3879bd117f
tree53e760ba41772be59a570d288cb234288844fafb
parent78030a66d75b19a6428f30e31b12bc6059c1fff3
Improve stability of subscription/029_on_error.pl

This test was failing when using wal_debug=on and -DWAL_DEBUG because of
additional log entries that made the test grab an LSN not mapping with
the error expected in the test.

Previously the test would look for the first matching line to get the
LSN to skip up to.  This is improved by having the test scan the logs
with a regexp that checks for the expected ERROR string, ensuring that
the wanted LSN comes from the correct context.

Backpatch down to 15 where this test has been introduced.

Author: Ian Ilyasov
Discussion: https://postgr.es/m/GV1P251MB100415F17E6B2FDD7188777ECDE32@GV1P251MB1004.EURP251.PROD.OUTLOOK.COM
Backpatch-through: 15
src/test/subscription/t/029_on_error.pl