Add -D option to specify data directory to pg_controldata and pg_resetxlog

Enterprise / PostgreSQL - Heikki Linnakangas [iki.fi] - 25 September 2014 05:37 UTC

It was confusing that to other commands, like initdb and postgres, you would pass the data directory with "-D datadir", but pg_controldata and pg_resetxlog would take just plain path, without the "-D". With this patch, pg_controldata and pg_resetxlog also accept "-D datadir".

Abhijit Menon-Sen, with minor kibitzing by me

b0d81ad Add -D option to specify data directory to pg_controldata and pg_resetxlog.
doc/src/sgml/ref/pg_controldata.sgml | 2 +-
doc/src/sgml/ref/pg_resetxlog.sgml | 2 +-
src/bin/pg_controldata/pg_controldata.c | 2 +-
src/bin/pg_resetxlog/pg_resetxlog.c | 16 ++++++++++------
4 files changed, 13 insertions(+), 9 deletions(-)

Upstream: git.postgresql.org


  • Share