Fix mistakes in pg_ctl's code for "start -w" that tries to cope with
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Feb 2008 22:18:20 +0000 (22:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Feb 2008 22:18:20 +0000 (22:18 +0000)
commite2f86a5c4591eeaf7cca8742a164aaed364a13a8
treea7323b06cd81e00f1c2d94afa875edcc137b573f
parent636fa3b4a7684fdef1a9f9b0d22030200cf62f7a
Fix mistakes in pg_ctl's code for "start -w" that tries to cope with
non-default settings for the postmaster's port number.  The code to parse
command line options and postgresql.conf entries wasn't quite right about
whitespace or quotes, and it was coded in a not-very-readable way too.
Per bug #3969 from Itagaki Takahiro, though this is more extensive than his
proposed patch (which fixed only the whitespace problem).
This code has been broken since it was put in in 8.0, so patch all the way
back.
src/bin/pg_ctl/pg_ctl.c