forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3857234
committed
Fix bug in clean shutdown of walsender that pg_receiving is connecting to.
On clean shutdown, walsender waits for all WAL to be replicated to a standby,and exits. It determined whether that replication had been completed bychecking whether its sent location had been equal to a standby's flushlocation. Unfortunately this condition never becomes true when the standbysuch as pg_receivexlog which always returns an invalid flush location isconnecting to walsender, and then walsender waits forever.This commit changes walsender so that it just checks a standby's writelocation if a flush location is invalid.Back-patch to 9.1 where enough infrastructure for this exists.1 parent6082907 commit3857234
1 file changed
+12
-1
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
| 1056 | + | |
| 1057 | + | |
1056 | 1058 |
| |
1057 | 1059 |
| |
1058 |
| - | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1059 | 1070 |
| |
1060 | 1071 |
| |
1061 | 1072 |
| |
|
0 commit comments
Comments
(0)