@@ -221,6 +221,9 @@ sub get_dump_for_comparison
221
221
222
222
$old_node_params {extra } = \@old_initdb_params ;
223
223
$oldnode -> init(%old_node_params );
224
+ # Override log_statement=all set by Cluster.pm. This avoids large amounts
225
+ # of log traffic that slow this test down even more when run under valgrind.
226
+ $oldnode -> append_conf(' postgresql.conf' , ' log_statement = none' );
224
227
$oldnode -> start;
225
228
226
229
my $result ;
@@ -312,6 +315,8 @@ sub get_dump_for_comparison
312
315
push @new_initdb_params , (' --locale-provider' , ' libc' );
313
316
$new_node_params {extra } = \@new_initdb_params ;
314
317
$newnode -> init(%new_node_params );
318
+ # Avoid unnecessary log noise
319
+ $newnode -> append_conf(' postgresql.conf' , ' log_statement = none' );
315
320
316
321
# Stabilize stats for comparison.
317
322
$newnode -> append_conf(' postgresql.conf' , ' autovacuum = off' );
@@ -379,6 +384,8 @@ sub get_dump_for_comparison
379
384
# source cluster to avoid any differences between dumps taken from both the
380
385
# clusters caused by differences in their configurations.
381
386
$dstnode -> init(%old_node_params );
387
+ # Avoid unnecessary log noise
388
+ $dstnode -> append_conf(' postgresql.conf' , ' log_statement = none' );
382
389
# Stabilize stats for comparison.
383
390
$dstnode -> append_conf(' postgresql.conf' , ' autovacuum = off' );
384
391
$dstnode -> start;
0 commit comments