Skip to content

Commit 4d7c3e3

Browse files
committed
Fix recovery conflict in 027_stream_regress.pl.
To avoid "ERROR: canceling statement due to conflict with recovery", as seen on a couple of slower build farm animals, crank max_standby_streaming_delay right up. In passing, adjust a configuration option that accidentally used a non-standard format (not a problem, but needlessly inconsistent). Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CA%2BhUKGK65xVqNgsSPyrr2LEwtfUN%3DGfEuQ868hTC-mu0bFG42A%40mail.gmail.com
1 parent 020258f commit 4d7c3e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/recovery/t/027_stream_regress.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Initialize primary node
2121
my $node_primary = PostgreSQL::Test::Cluster->new('primary');
2222
$node_primary->init(allows_streaming => 1);
23-
$node_primary->adjust_conf('postgresql.conf', 'max_connections', '25', 1);
23+
$node_primary->adjust_conf('postgresql.conf', 'max_connections', '25');
2424
$node_primary->append_conf('postgresql.conf', 'max_prepared_transactions = 10');
2525

2626
# WAL consistency checking is resource intensive so require opt-in with the
@@ -48,6 +48,8 @@
4848
has_streaming => 1);
4949
$node_standby_1->append_conf('postgresql.conf',
5050
"primary_slot_name = standby_1");
51+
$node_standby_1->append_conf('postgresql.conf',
52+
'max_standby_streaming_delay = 600s');
5153
$node_standby_1->start;
5254

5355
my $dlpath = PostgreSQL::Test::Utils::perl2host(dirname($ENV{REGRESS_SHLIB}));

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