Skip to content

Commit 2a66218

Browse files
Amit Kapilapull[bot]
authored andcommitted
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
1 parent bd3cb37 commit 2a66218

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/recovery/t/040_standby_failover_slots_sync.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# Create publisher
1616
my $publisher = PostgreSQL::Test::Cluster->new('publisher');
1717
$publisher->init(allows_streaming => 'logical');
18+
# Disable autovacuum to avoid generating xid during stats update as otherwise
19+
# the new XID could then be replicated to standby at some random point making
20+
# slots at primary lag behind standby during slot sync.
21+
$publisher->append_conf('postgresql.conf', 'autovacuum = off');
1822
$publisher->start;
1923

2024
$publisher->safe_psql('postgres',

0 commit comments

Comments
 (0)