forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1a4ab9e
committed
If recovery_target_timeline is set to 'latest' and standby mode is enabled,
periodically rescan the archive for new timelines, while waiting for new WALsegments to arrive. This allows you to set up a standby server that followsthe TLI change if another standby server is promoted to master. Before this,you had to restart the standby server to make it notice the new timeline.This patch only scans the archive for TLI changes, it won't follow a TLIchange in streaming replication. That is much needed too, but it would be amuch bigger patch than I dare to sneak in this late in the release cycle.There was discussion on improving the sanity checking of the WAL segments sothat the system would notice more reliably if the new timeline isn't anancestor of the current one, but that is not included in this patch.Reviewed by Fujii Masao.1 parentbcf85e3 commit1a4ab9e
File tree
3 files changed
+83
-5
lines changed- doc/src/sgml
- src/backend/access/transam
3 files changed
+83
-5
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
663 |
| - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
664 | 667 |
| |
665 | 668 |
| |
666 | 669 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
244 | 246 |
| |
245 | 247 |
| |
246 | 248 |
| |
|
Lines changed: 76 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| 217 | + | |
| 218 | + | |
217 | 219 |
| |
218 | 220 |
| |
219 | 221 |
| |
| |||
227 | 229 |
| |
228 | 230 |
| |
229 | 231 |
| |
| 232 | + | |
230 | 233 |
| |
231 | 234 |
| |
232 | 235 |
| |
| |||
637 | 640 |
| |
638 | 641 |
| |
639 | 642 |
| |
| 643 | + | |
640 | 644 |
| |
641 | 645 |
| |
642 | 646 |
| |
| |||
4253 | 4257 |
| |
4254 | 4258 |
| |
4255 | 4259 |
| |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
| 4307 | + | |
| 4308 | + | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
4256 | 4316 |
| |
4257 | 4317 |
| |
4258 | 4318 |
| |
| |||
5327 | 5387 |
| |
5328 | 5388 |
| |
5329 | 5389 |
| |
| 5390 | + | |
5330 | 5391 |
| |
5331 | 5392 |
| |
5332 | 5393 |
| |
5333 | 5394 |
| |
5334 | 5395 |
| |
| 5396 | + | |
5335 | 5397 |
| |
5336 | 5398 |
| |
5337 | 5399 |
| |
| |||
10032 | 10094 |
| |
10033 | 10095 |
| |
10034 | 10096 |
| |
10035 |
| - | |
| 10097 | + | |
10036 | 10098 |
| |
10037 | 10099 |
| |
10038 | 10100 |
| |
10039 | 10101 |
| |
10040 |
| - | |
10041 |
| - | |
| 10102 | + | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
| 10111 | + | |
| 10112 | + | |
| 10113 | + | |
| 10114 | + | |
10042 | 10115 |
| |
10043 | 10116 |
| |
10044 | 10117 |
| |
|
0 commit comments
Comments
(0)