pgsql: Fix parsing of xlog file name in pg_receivexlog.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix parsing of xlog file name in pg_receivexlog.
Дата
Msg-id E1VdG1V-0007kA-Rs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2103430179c6be37d68364c84d68d5211472f528

Modified Files
--------------
src/bin/pg_basebackup/pg_receivexlog.c |   11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix parsing of xlog file name in pg_receivexlog.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix format code used to print dsm request sizes.