forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3bc4c69
committed
Report WAL flush, not insert, position in replication IDENTIFY_SYSTEM
When beginning streaming replication, the client usually issues theIDENTIFY_SYSTEM command, which used to return the current WAL insertposition. That's not suitable for the intended purpose of that field,however. pg_receivexlog uses it to start replication from the reportedpoint, but if it hasn't been flushed to disk yet, it will fail. ChangeIDENTIFY_SYSTEM to report the flush position instead.Backpatch to 9.1 and above. 9.0 doesn't report any WAL position.1 parent48a565d commit3bc4c69
File tree
2 files changed
+2
-2
lines changed- doc/src/sgml
- src/backend/replication
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1369 | 1369 |
| |
1370 | 1370 |
| |
1371 | 1371 |
| |
1372 |
| - | |
| 1372 | + | |
1373 | 1373 |
| |
1374 | 1374 |
| |
1375 | 1375 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
0 commit comments
Comments
(0)