|
5 | 5 | use warnings;
|
6 | 6 | use PostgresNode;
|
7 | 7 | use TestLib;
|
8 |
| -use Test::More tests => 16; |
| 8 | +use Test::More tests => 13; |
9 | 9 | use Config;
|
10 | 10 |
|
11 | 11 | my $primary = get_new_node('master');
|
|
155 | 155 | # Second restartpoint.
|
156 | 156 | $standby1->safe_psql('postgres', q{CHECKPOINT});
|
157 | 157 |
|
158 |
| -# Recovery with archive_mode=on removed .ready signal files inherited |
159 |
| -# from backup after two checkpoints. Note that this WAL segment |
160 |
| -# existed in the backup. |
161 |
| -ok( !-f "$standby1_data/$segment_path_1_ready", |
162 |
| - ".ready file for WAL segment $segment_name_1 present in backup removed with archive_mode=on on standby" |
163 |
| -); |
164 |
| - |
165 | 158 | # Recovery with archive_mode=on should not create .ready files.
|
166 | 159 | # Note that this segment did not exist in the backup.
|
167 | 160 | ok( !-f "$standby1_data/$segment_path_2_ready",
|
168 | 161 | ".ready file for WAL segment $segment_name_2 not created on standby when archive_mode=on on standby"
|
169 | 162 | );
|
170 | 163 |
|
171 |
| -# Recovery with archive_mode = on creates .done files. |
172 |
| -ok( -f "$standby1_data/$segment_path_2_done", |
173 |
| - ".done file for WAL segment $segment_name_2 created when archive_mode=on on standby" |
174 |
| -); |
175 |
| - |
176 | 164 | # Test recovery with archive_mode = always, which should always keep
|
177 | 165 | # .ready files if archiving is enabled, though here we want the archive
|
178 | 166 | # command to fail to persist the .ready files. Note that this node
|
|
190 | 178 | ".ready file for WAL segment $segment_name_1 existing in backup is kept with archive_mode=always on standby"
|
191 | 179 | );
|
192 | 180 |
|
193 |
| -ok( -f "$standby2_data/$segment_path_2_ready", |
194 |
| - ".ready file for WAL segment $segment_name_2 created with archive_mode=always on standby" |
195 |
| -); |
196 |
| - |
197 | 181 | # Reset statistics of the archiver for the next checks.
|
198 | 182 | $standby2->safe_psql('postgres', q{SELECT pg_stat_reset_shared('archiver')});
|
199 | 183 |
|
|
0 commit comments