From: Tom Lane <tgl@sss.pgh.pa.us>
To: murrayc@murrayc.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path
Date: Tue, 04 Sep 2012 10:31:41 -0400
Message-ID: <16738.1346769101@sss.pgh.pa.us> (raw)
In-Reply-To: <E1T7f8j-0007MM-FJ@wrigleys.postgresql.org>
References: <E1T7f8j-0007MM-FJ@wrigleys.postgresql.org>
murrayc@murrayc.com writes:
> At some point, probably in 9.1.5, the -k option to Postgres ("Unix-domain
> socket location" in --help), stopped accepting paths that contain spaces.
> For instance,
> -k '/tmp/testglom2FPDKW/path with spaces/some_postgres_data'
> It now fails with this error:
> FATAL: invalid list syntax for "unix_socket_directories"
Ah, you're using the latest Fedora packaging of 9.1.x, which includes a
back-ported version of the unix_socket_directories change that's in
HEAD. -k now effectively takes a list of directory names, not just
one, and it's pickier about whitespace.
IIRC, you can make it work if you put double quotes around the
space-containing name, so it'd look like this:
-k '"/blah blah blah"'
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, murrayc@murrayc.com
Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path
In-Reply-To: <16738.1346769101@sss.pgh.pa.us>
References: <E1T7f8j-0007MM-FJ@wrigleys.postgresql.org> <16738.1346769101@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox