Re: pg_ctl restart bug

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: <jmitchell@greatbridge.com>
Cc: <pgsql-bugs@postgresql.org>
Date: 2001-04-20T19:18:26Z
Lists: pgsql-bugs
jmitchell@greatbridge.com writes:

> "pg_ctl restart" fails if anything is quoted in postmaster.opts.
>
>     $ pg_ctl restart
>     Smart Shutdown request at Fri Apr 20 10:11:38 2001
>     postmaster successfully shut down
>     postmaster successfully started
>     /usr/bin/postmaster: invalid argument -- '-D'
>     Try '/usr/bin/postmaster --help' for more information.
>
>
>     $ cat postmaster.opts
>     /usr/bin/postmaster '-D' '/var/lib/pgsql/data'

Unless someone can show me a way to extract the command line options out
of the opts file while preserving whitespace in them, I'm going to
eliminate the quotes being put out.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter