Skip to content

Commit a17aa50

Browse files
author
Amit Kapila
committed
Improve the comments in 004_subscription.pl.
It was not clear whether the subscriptions in the upgraded instance were the ones that retained the previous subscription's properties. Author: Peter Smith Reviewed-by: Vignesh C, Alvaro Herrera Discussion: https://postgr.es/m/CAHut+Pu1usLPHRySPTacY1K_Q-ddSRXNFhmj_2u1NfqBC1ytng@mail.gmail.com
1 parent 2889fd2 commit a17aa50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/pg_upgrade/t/004_subscription.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
# ------------------------------------------------------
109109
# Check that pg_upgrade is successful when all tables are in ready or in
110110
# init state (tab_upgraded1 table is in ready state and tab_upgraded2 table is
111-
# in init state) along with retaining the replication origin's remote lsn
112-
# and subscription's running status.
111+
# in init state) along with retaining the replication origin's remote lsn,
112+
# subscription's running status, and failover option.
113113
# ------------------------------------------------------
114114
command_ok(
115115
[
@@ -137,15 +137,15 @@
137137

138138
$new_sub->start;
139139

140-
# The subscription's running status and failover option should be preserved.
141-
# Old subscription regress_sub1 should have enabled and failover as true while
142-
# old subscription regress_sub2 should have enabled and failover as false.
140+
# The subscription's running status and failover option should be preserved
141+
# in the upgraded instance. So regress_sub1 should still have subenabled and
142+
# subfailover set to true, while regress_sub2 should have both set to false.
143143
$result =
144144
$new_sub->safe_psql('postgres',
145145
"SELECT subname, subenabled, subfailover FROM pg_subscription ORDER BY subname");
146146
is( $result, qq(regress_sub1|t|t
147147
regress_sub2|f|f),
148-
"check that the subscription's running status are preserved");
148+
"check that the subscription's running status and failover are preserved");
149149

150150
my $sub_oid = $new_sub->safe_psql('postgres',
151151
"SELECT oid FROM pg_subscription WHERE subname = 'regress_sub2'");

0 commit comments

Comments
 (0)