forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5d2b45e
committed
Add GUC to control the time to wait before retrieving WAL after failed attempt.
Previously when the standby server failed to retrieve WAL files from any sources(i.e., streaming replication, local pg_xlog directory or WAL archive), it alwayswaited for five seconds (hard-coded) before the next attempt. For example,this is problematic in warm-standby because restore_command can failevery five seconds even while new WAL file is expected to be unavailable fora long time and flood the log files with its error messages.This commit adds new parameter, wal_retrieve_retry_interval, to control thatwait time.Alexey Vasiliev and Michael Paquier, reviewed by Andres Freund and me.1 parent2a3f6e3 commit5d2b45e
File tree
5 files changed
+57
-13
lines changed- doc/src/sgml
- src
- backend
- access/transam
- utils/misc
- include/access
5 files changed
+57
-13
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2985 | 2985 |
| |
2986 | 2986 |
| |
2987 | 2987 |
| |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
2988 | 3006 |
| |
2989 | 3007 |
| |
2990 | 3008 |
| |
|
Lines changed: 24 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
| |||
10340 | 10341 |
| |
10341 | 10342 |
| |
10342 | 10343 |
| |
10343 |
| - | |
10344 |
| - | |
| 10344 | + | |
| 10345 | + | |
10345 | 10346 |
| |
10346 | 10347 |
| |
10347 | 10348 |
| |
| |||
10351 | 10352 |
| |
10352 | 10353 |
| |
10353 | 10354 |
| |
10354 |
| - | |
| 10355 | + | |
10355 | 10356 |
| |
10356 | 10357 |
| |
10357 | 10358 |
| |
| |||
10490 | 10491 |
| |
10491 | 10492 |
| |
10492 | 10493 |
| |
10493 |
| - | |
10494 |
| - | |
| 10494 | + | |
| 10495 | + | |
10495 | 10496 |
| |
10496 |
| - | |
10497 |
| - | |
| 10497 | + | |
| 10498 | + | |
| 10499 | + | |
10498 | 10500 |
| |
10499 |
| - | |
10500 |
| - | |
| 10501 | + | |
| 10502 | + | |
| 10503 | + | |
| 10504 | + | |
| 10505 | + | |
| 10506 | + | |
| 10507 | + | |
| 10508 | + | |
| 10509 | + | |
| 10510 | + | |
| 10511 | + | |
| 10512 | + | |
10501 | 10513 |
| |
10502 | 10514 |
| |
10503 | 10515 |
| |
| |||
10653 | 10665 |
| |
10654 | 10666 |
| |
10655 | 10667 |
| |
10656 |
| - | |
10657 |
| - | |
10658 |
| - | |
| 10668 | + | |
| 10669 | + | |
10659 | 10670 |
| |
10660 | 10671 |
| |
10661 |
| - | |
| 10672 | + | |
10662 | 10673 |
| |
10663 | 10674 |
| |
10664 | 10675 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2363 | 2363 |
| |
2364 | 2364 |
| |
2365 | 2365 |
| |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
2366 | 2378 |
| |
2367 | 2379 |
| |
2368 | 2380 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| 263 | + | |
| 264 | + | |
263 | 265 |
| |
264 | 266 |
| |
265 | 267 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
|
0 commit comments
Comments
(0)