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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b0d81adea650a4bc2b9391234345bb935b89a694
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-09-25T10:37:19Z
Releases: 9.5.0
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

Files