- Notifications
You must be signed in to change notification settings - Fork5
Commitf0eb3e5
committed
Fix incorrect archive truncation point calculation in the %r recovery_command
parameter. This fixes bug 4137 reported by Wojciech Strzalka, where a WALfile is deleted too early when starting the recovery of a warm standby server.Also add a sanity check in pg_standby so that it will refuse to delete anythingearlier than the file being restored, and improve the debug message in casenothing is deleted.Simon Riggs. Backpatch to 8.3, which is where %r was introduced.1 parent706fcbd commitf0eb3e5
File tree
2 files changed
+44
-7
lines changed- contrib/pg_standby
- src/backend/access/transam
2 files changed
+44
-7
lines changedLines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
300 | 309 |
| |
301 | 310 |
| |
302 | 311 |
| |
| |||
584 | 593 |
| |
585 | 594 |
| |
586 | 595 |
| |
587 |
| - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
588 | 601 |
| |
589 | 602 |
| |
590 | 603 |
| |
|
Lines changed: 30 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
2483 | 2483 |
| |
2484 | 2484 |
| |
2485 | 2485 |
| |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2486 | 2515 |
| |
2487 | 2516 |
| |
2488 | 2517 |
| |
| |||
2512 | 2541 |
| |
2513 | 2542 |
| |
2514 | 2543 |
| |
2515 |
| - | |
2516 |
| - | |
2517 |
| - | |
2518 |
| - | |
2519 |
| - | |
2520 | 2544 |
| |
2521 | 2545 |
| |
2522 | 2546 |
| |
|
0 commit comments
Comments
(0)