pgsql: Improve test in 009_matviews.pl.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve test in 009_matviews.pl.
Date: 2025-10-27 04:02:51
Message-ID: E1vDERX-003goR-0c@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve test in 009_matviews.pl.

Ensure that the target table on the subscriber exists before executing any
DML intended for replication.

Currently, if the table is missing, the replication logic keeps retrying
until the table is eventually created by the test. Although this behaviour
does not cause test failures, since the table is created after the INSERT
is published and replication eventually succeeds, however, it introduces
unnecessary looping and delays.

Author: Grem Snoort <grem(dot)snoort(at)gmail(dot)com>
Discussion: https://postgr.es/m/CANV9Qw5HD7=Fp4nox2O7DoVctHoabRRVW9Soo4A=QipqW5B=Tg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/549d9c91b1d2fa38e374c020eb584e3e6836e27c

Modified Files
--------------
src/test/subscription/t/009_matviews.pl | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2025-10-27 06:59:44 pgsql: Fix GUC check_hook validation for synchronized_standby_slots.
Previous Message Jeff Davis 2025-10-26 19:32:13 pgsql: Comment typo fixes: pg_wchar_t should be pg_wchar.