forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitff16b40
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 parent5ee5bc3 commitff16b40
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 | |
---|---|---|---|
| |||
1371 | 1371 |
| |
1372 | 1372 |
| |
1373 | 1373 |
| |
1374 |
| - | |
| 1374 | + | |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 | 1377 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
319 |
| - | |
| 319 | + | |
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
|
0 commit comments
Comments
(0)