|
108 | 108 | # ------------------------------------------------------
|
109 | 109 | # Check that pg_upgrade is successful when all tables are in ready or in
|
110 | 110 | # 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. |
113 | 113 | # ------------------------------------------------------
|
114 | 114 | command_ok(
|
115 | 115 | [
|
|
137 | 137 |
|
138 | 138 | $new_sub->start;
|
139 | 139 |
|
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. |
143 | 143 | $result =
|
144 | 144 | $new_sub->safe_psql('postgres',
|
145 | 145 | "SELECT subname, subenabled, subfailover FROM pg_subscription ORDER BY subname");
|
146 | 146 | is( $result, qq(regress_sub1|t|t
|
147 | 147 | 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"); |
149 | 149 |
|
150 | 150 | my $sub_oid = $new_sub->safe_psql('postgres',
|
151 | 151 | "SELECT oid FROM pg_subscription WHERE subname = 'regress_sub2'");
|
|
0 commit comments