Fix mistakes in pg_ctl's code for "start -w" that tries to cope with

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c84928f1832ca96947746a41064d9e9af5fd174e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-02-20T22:18:28Z
Releases: 8.2.7
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.

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +43 −19