Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9e225f

Browse files
author
Amit Kapila
committed
Change the LOG level in 040_standby_failover_slots_sync.pl to DEBUG2.
Temporarily change the log level of 040_standby_failover_slots_sync.pl toDEBUG2. This is to get more information about BF failures. We will resetit back to default once the tests are stabilized.Author: Hou ZhijieReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.comDiscussion:https://postgr.es/m/OS0PR01MB571633C23B2A4CAC5FB0371A944C2@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent7a424ec commitd9e225f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,20 @@
130130
has_streaming=> 1,
131131
has_restoring=> 1);
132132

133+
# Increase the log_min_messages setting to DEBUG2 on both the standby and
134+
# primary to debug test failures, if any.
133135
my$connstr_1 =$primary->connstr;
134136
$standby1->append_conf(
135137
'postgresql.conf',qq(
136138
hot_standby_feedback = on
137139
primary_slot_name = 'sb1_slot'
138140
primary_conninfo = '$connstr_1 dbname=postgres'
141+
log_min_messages = 'debug2'
139142
));
140143

144+
$primary->append_conf('postgresql.conf',"log_min_messages = 'debug2'");
145+
$primary->reload;
146+
141147
$primary->psql('postgres',
142148
q{SELECT pg_create_logical_replication_slot('lsub2_slot', 'test_decoding', false, false, true);}
143149
);
@@ -265,6 +271,13 @@
265271
"t",
266272
'logical slot is re-synced');
267273

274+
# Reset the log_min_messages to the default value.
275+
$primary->append_conf('postgresql.conf',"log_min_messages = 'warning'");
276+
$primary->reload;
277+
278+
$standby1->append_conf('postgresql.conf',"log_min_messages = 'warning'");
279+
$standby1->reload;
280+
268281
##################################################
269282
# Test that a synchronized slot can not be decoded, altered or dropped by the
270283
# user

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp