Skip site navigation (1) Skip section navigation (2)

pgsql: Fix pg_resetxlog to use correct path to

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_resetxlog to use correct path to
Date: 2012-11-22 16:25:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Fix pg_resetxlog to use correct path to

Since we've already chdir'd into the data directory, the file should
be referenced as just "", 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.



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

pgsql-committers by date

Next:From: Michael MeskesDate: 2012-11-23 13:40:52
Subject: pgsql: Applied patch by Chen Huajun <> to makeecp
Previous:From: Heikki LinnakangasDate: 2012-11-22 16:20:41
Subject: pgsql: Avoid bogus "out-of-sequence timeline ID" errors instandby-mode

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group