Add -D option to specify data directory to pg_controldata and pg_resetxlog.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_controldata.sgml | modified | +1 −1 |
| doc/src/sgml/ref/pg_resetxlog.sgml | modified | +1 −1 |
| src/bin/pg_controldata/pg_controldata.c | modified | +1 −1 |
| src/bin/pg_resetxlog/pg_resetxlog.c | modified | +10 −6 |