]> granicus.if.org Git - postgresql/commit
Add -D option to specify data directory to pg_controldata and pg_resetxlog.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 25 Sep 2014 10:26:18 +0000 (13:26 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 25 Sep 2014 10:37:19 +0000 (13:37 +0300)
commitb0d81adea650a4bc2b9391234345bb935b89a694
tree38f431acc1f775adfae8db86d09cec72375b8b5b
parentafd1d95f5bf0cb48af77e5897eb4c356b5371c7b
Add -D option to specify data directory to pg_controldata and pg_resetxlog.

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
doc/src/sgml/ref/pg_controldata.sgml
doc/src/sgml/ref/pg_resetxlog.sgml
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c