diff options
author | Amit Kapila <akapila@postgresql.org> | 2024-02-16 14:42:50 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2024-02-16 14:42:50 +0530 |
commit | b7bdade6a42f49021d41955d6534f334e827775c (patch) | |
tree | cd80b4b6a3a70e99f3e39dde261e890d53ed3c06 | |
parent | b987be39c3c790821e462a64151b890dd3bcdd98 (diff) | |
download | postgresql-b7bdade6a42f49021d41955d6534f334e827775c.tar.gz postgresql-b7bdade6a42f49021d41955d6534f334e827775c.zip |
Disable autovacuum on primary in 040_standby_failover_slots_sync test.
Disable autovacuum to avoid generating xid during stats update as
otherwise the new XID could then be replicated to standby at some random
point making slots at primary lag behind standby during slot sync.
As per buildfarm
Author: Hou Zhijie
Discussion: https://postgr.es/m/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com
Discussion: https://postgr.es/m/CAA4eK1Jun8SGCoc6JEktxY_+L7GmoJWrdsx-KCEP=GL-SsWggQ@mail.gmail.com
-rw-r--r-- | src/test/recovery/t/040_standby_failover_slots_sync.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/recovery/t/040_standby_failover_slots_sync.pl b/src/test/recovery/t/040_standby_failover_slots_sync.pl index edbfeb36652..2755c3fc84b 100644 --- a/src/test/recovery/t/040_standby_failover_slots_sync.pl +++ b/src/test/recovery/t/040_standby_failover_slots_sync.pl @@ -15,6 +15,10 @@ use Test::More; # Create publisher my $publisher = PostgreSQL::Test::Cluster->new('publisher'); $publisher->init(allows_streaming => 'logical'); +# Disable autovacuum to avoid generating xid during stats update as otherwise +# the new XID could then be replicated to standby at some random point making +# slots at primary lag behind standby during slot sync. +$publisher->append_conf('postgresql.conf', 'autovacuum = off'); $publisher->start; $publisher->safe_psql('postgres', |