Skip to content

Commit b7bdade

Browse files
author
Amit Kapila
committed
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 b987be3 commit b7bdade

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy