Re: pg_ctl problem - Mailing list pgsql-general

From jseymour@LinxNet.com (Jim Seymour)
Subject Re: pg_ctl problem
Date
Msg-id 20040408215941.AD6714307@jimsun.LinxNet.com
Whole thread Raw
In response to pg_ctl problem  (Alexander Cohen <alex@toomuchspace.com>)
Responses Re: pg_ctl problem
List pgsql-general
Alexander Cohen <alex@toomuchspace.com> wrote:
>
[snip]
>
> so i tried passing this: ( added quotes to the problematic database
> path )
>
> ./pg_ctl start -w -D "/Volumes/GROUCH\ 2/Database3"
>
> and i still get the same error.
>
> Can i not pass a path with spaces in it?

Possibly with enough "escaping," you could do it.  pg_ctl is itself a
shell script.  So when it expands the argument to the -D switch, at
least one set of quotes will be lost.  (Btw: The back-slash wasn't
really necessary.)

> How should i pass this command to the command line in order to get the
> server up and running?

You might be able to find some combination of escape sequences,
repeated escape sequences, etc., etc., to get it to work.  But then, if
pg_ctl is subsequently changed to alter the way that argument is
processed: You're screwed.

I hate to answer a question with a question, but if ever there was a
case where doing so would appear legitimate, this, IMO, would have to
be it.  So... Why in God's name are you trying to do this?  Why not
just get rid of the space and save yourself the current, and possibly
future, grief?

--
Jim Seymour                | Spammers sue anti-spammers:
jseymour@LinxNet.com       |     http://www.LinxNet.com/misc/spam/slapp.php
http://jimsun.LinxNet.com  | Please donate to the SpamCon Legal Fund:
                           |     http://www.spamcon.org/legalfund/

pgsql-general by date:

Previous
From: Randall Skelton
Date:
Subject: Re: extract epoch and index scanning
Next
From: jseymour@LinxNet.com (Jim Seymour)
Date:
Subject: Re: Date Comparison Help