pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve log pattern detection in recently-added TAP tests
2+ messages / 1 participants
[nested] [flat]

* pgsql: Improve log pattern detection in recently-added TAP tests
@ 2021-06-12 06:30 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2021-06-12 06:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bfd96b7a3dc26a8384d4185d274573fb6a46b033

Modified Files
--------------
src/test/subscription/t/001_rep_changes.pl |  7 ++++++-
src/test/subscription/t/013_partition.pl   | 14 ++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Improve log pattern detection in recently-added TAP tests
@ 2021-06-12 06:30 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2021-06-12 06:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fad9c8e93a65f087033312cd655511a28d07ab51

Modified Files
--------------
src/test/subscription/t/001_rep_changes.pl |  7 ++++++-
src/test/subscription/t/013_partition.pl   | 14 ++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-06-12 06:30 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12 06:30 pgsql: Improve log pattern detection in recently-added TAP tests Michael Paquier <michael@paquier.xyz>
2021-06-12 06:30 pgsql: Improve log pattern detection in recently-added TAP tests Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox