Search Postgresql Archives

Re: pg_ctl problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux