pgsql: Fix test instability

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix test instability
Date: 2022-07-29 10:54:04
Message-ID: E1oHNd5-001lsr-Iw@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix test instability

On FreeBSD, the new test fails due to a WAL file being removed before
the standby has had the chance to copy it. Fix by adding a replication
slot to prevent the removal until after the standby has connected.

Author: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Reported-by: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAEze2Wj5nau_qpjbwihvmXLfkAWOZ5TKdbnqOc6nKSiRJEoPyQ@mail.gmail.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4d8d85740c0228b04a10818587b70f4ae3a2beba

Modified Files
--------------
src/test/recovery/t/033_replay_tsp_drops.pl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dilip Kumar 2022-07-29 11:00:22 Re: pgsql: Use TRUNCATE to preserve relfilenode for pg_largeobject + index.
Previous Message Amit Kapila 2022-07-29 08:59:06 pgsql: Move related functions next to each other in pg_publication.c.