pgsql: Add -D option to specify data directory to pg_controldata and pg

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add -D option to specify data directory to pg_controldata and pg
Date: 2014-09-25 10:38:00
Message-ID: E1XX6Qy-0004IB-U3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b0d81adea650a4bc2b9391234345bb935b89a694

Modified Files
--------------
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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-09-25 12:20:16 pgsql: Return NULL from json_object_agg if it gets no rows.
Previous Message Stephen Frost 2014-09-24 21:46:27 pgsql: Copy-editing of row security