diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-11-04 10:51:37 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-11-04 10:59:02 +0200 |
commit | e843d12ebc6cfea9704eca5da62a78ac34ad2602 (patch) | |
tree | eed8f9a6f0855c00fb2f58ed269a93e0f4f3d37d /src/backend/executor/execMain.c | |
parent | da2c6a919533e29623b03a2213b72ece69875bb3 (diff) | |
download | postgresql-e843d12ebc6cfea9704eca5da62a78ac34ad2602.tar.gz postgresql-e843d12ebc6cfea9704eca5da62a78ac34ad2602.zip |
Fix parsing of xlog file name in pg_receivexlog.
The parsing of WAL filenames of segments larger than > 255 was broken,
making pg_receivexlog unable to restart streaming after stopping it.
The bug was introduced by the changes in 9.3 to represent WAL segment number
as a 64-bit integer instead of two ints, log and seg. To fix, replace the
plain sscanf call with XLogFromFileName macro, which does the conversion
from log+seg to a 64-bit integer correcly.
Reported by Mika Eloranta.
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions