pgsql: Fix pg_resetxlog to use correct path to postmaster.pid.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix pg_resetxlog to use correct path to postmaster.pid.
Дата
Msg-id E1TbZae-0000tI-Q9@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix pg_resetxlog to use correct path to postmaster.pid.

Since we've already chdir'd into the data directory, the file should
be referenced as just "postmaster.pid", without prefixing the directory
path.  This is harmless in the normal case where an absolute PGDATA path
is used, but quite dangerous if a relative path is specified, since the
program might then fail to notice an active postmaster.

Reported by Hari Babu.  This got broken in my commit
eb5949d190e80360386113fde0f05854f0c9824d, so patch all active versions.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/336bc0dff20e47344337a99a3aeba9e2e5385af0

Modified Files
--------------
src/bin/pg_resetxlog/pg_resetxlog.c |   10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Avoid bogus "out-of-sequence timeline ID" errors in standby-mode
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix pg_resetxlog to use correct path to postmaster.pid.