make pg_controldata accept "-D dirname"

From: Abhijit Menon-Sen <ams(at)2ndQuadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: make pg_controldata accept "-D dirname"
Date: 2014-09-24 10:59:07
Message-ID: 20140924105907.GA18922@toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

I can never remember that pg_controldata takes only a dirname rather
than "-D dirname", and I gather I'm not the only one. Here's a tiny
patch to make it work either way. As far as I can see, it doesn't
break anything, not even if you have a data directory named "-D".

-- Abhijit

Attachment Content-Type Size
0001-Make-pg_controldata-ignore-a-D-before-DataDir.patch text/x-diff 761 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-09-24 10:59:17 Re: pg_dump bug in 9.4beta2 and HEAD
Previous Message Thom Brown 2014-09-24 10:50:00 Re: pg_dump bug in 9.4beta2 and HEAD