forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita9613ee
committed
Ignore recovery_min_apply_delay until recovery has reached consistent state
Previously recovery_min_apply_delay was applied even before recoveryhad reached consistency. This could cause us to wait a long timeunexpectedly for read-only connections to be allowed. It's problematicbecause the standby was useless during that wait time.This patch changes recovery_min_apply_delay so that it's applied oncethe database has reached the consistent state. That is, even if the delayis set, the standby tries to replay WAL records as fast as possible untilit has reached consistency.Author: Michael PaquierReviewed-By: Julien RouhaudReported-By: Greg CloughBackpatch: 9.4, where recovery_min_apply_delay was addedBug: #13770Discussion:http://www.postgresql.org/message-id/20151111155006.2644.84564@wrigleys.postgresql.org1 parent2105091 commita9613ee
File tree
2 files changed
+7
-2
lines changed- doc/src/sgml
- src/backend/access/transam
2 files changed
+7
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
444 |
| - | |
445 |
| - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
446 | 447 |
| |
447 | 448 |
| |
448 | 449 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5856 | 5856 |
| |
5857 | 5857 |
| |
5858 | 5858 |
| |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
5859 | 5863 |
| |
5860 | 5864 |
| |
5861 | 5865 |
| |
|
0 commit comments
Comments
(0)