]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve log pattern detection in recently-added TAP tests
authorMichael Paquier <michael@paquier.xyz>
Sat, 12 Jun 2021 06:30:00 +0000 (15:30 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 12 Jun 2021 06:30:00 +0000 (15:30 +0900)
commitfad9c8e93a65f087033312cd655511a28d07ab51
tree8879c97a84abb57b8787d4f6064fe4c5469b7f78
parentf865d2affc456ede17e46949007682e91d19daa4
Improve log pattern detection in recently-added TAP tests

ab55d74 has introduced some tests with rows found as missing in logical
replication subscriptions for partitioned tables, relying on a logic
with a lookup of the logs generated, scanning the whole file.  This
commit makes the logic more precise, by scanning the logs only from the
position before the key queries are run to the position where we check
for the logs.  This will reduce the risk of issues with log patterns
overlapping with each other if those tests get more complicated in the
future.

Per discussion with Tom Lane.

Discussion: https://postgr.es/m/YMP+Gx2S8meYYHW4@paquier.xyz
Backpatch-through: 13
src/test/subscription/t/001_rep_changes.pl
src/test/subscription/t/013_partition.pl