|
3 | 3 | use warnings;
|
4 | 4 | use PostgresNode;
|
5 | 5 | use TestLib;
|
6 |
| -use Test::More tests => 28; |
| 6 | +use Test::More tests => 26; |
7 | 7 |
|
8 | 8 | # Initialize master node
|
9 | 9 | my $node_master = get_new_node('master');
|
@@ -279,27 +279,3 @@ sub replay_check
|
279 | 279 | is($xmin, '', 'xmin of cascaded slot null with hs feedback reset');
|
280 | 280 | is($catalog_xmin, '',
|
281 | 281 | 'catalog xmin of cascaded slot still null with hs_feedback reset');
|
282 |
| - |
283 |
| -note "re-enabling hot_standby_feedback and disabling while stopped"; |
284 |
| -$node_standby_2->safe_psql('postgres', |
285 |
| - 'ALTER SYSTEM SET hot_standby_feedback = on;'); |
286 |
| -$node_standby_2->reload; |
287 |
| - |
288 |
| -$node_master->safe_psql('postgres', qq[INSERT INTO tab_int VALUES (11000);]); |
289 |
| -replay_check(); |
290 |
| - |
291 |
| -$node_standby_2->safe_psql('postgres', |
292 |
| - 'ALTER SYSTEM SET hot_standby_feedback = off;'); |
293 |
| -$node_standby_2->stop; |
294 |
| - |
295 |
| -($xmin, $catalog_xmin) = |
296 |
| - get_slot_xmins($node_standby_1, $slotname_2, "xmin IS NOT NULL"); |
297 |
| -isnt($xmin, '', 'xmin of cascaded slot non-null with postgres shut down'); |
298 |
| - |
299 |
| -# Xmin from a previous run should be cleared on startup. |
300 |
| -$node_standby_2->start; |
301 |
| - |
302 |
| -($xmin, $catalog_xmin) = |
303 |
| - get_slot_xmins($node_standby_1, $slotname_2, "xmin IS NULL"); |
304 |
| -is($xmin, '', |
305 |
| - 'xmin of cascaded slot reset after startup with hs feedback reset'); |
0 commit comments