pgsql: Fix pg_rewind when pg_xlog is a symlink.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix pg_rewind when pg_xlog is a symlink.
Дата
Msg-id E1ZMEwL-0007Ed-7o@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Fix pg_rewind when pg_xlog is a symlink.  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-committers
Fix pg_rewind when pg_xlog is a symlink.

pg_xlog is often a symlink, typically to a different filesystem. Don't
get confused and comlain about by that, and just always pretend that it's a
normal directory, even if it's really a symlink.

Also add a test case for this.

Backpatch to 9.5.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0e42397f42b370798461cbf3358185b520329f9f

Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm            |   14 +++--
src/bin/pg_rewind/filemap.c                |   16 +++++-
src/bin/pg_rewind/t/001_basic.pl           |    1 +
src/bin/pg_rewind/t/002_databases.pl       |    1 +
src/bin/pg_rewind/t/003_extrafiles.pl      |    1 +
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl |   79 ++++++++++++++++++++++++++++
6 files changed, 107 insertions(+), 5 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix pg_rewind when pg_xlog is a symlink.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Clean up pg_rewind regression test script.