Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8uAM-0004Dx-9A for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 14:31:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8uAK-0007Gt-Lf for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 14:31:45 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q84EVfOq016739; Tue, 4 Sep 2012 10:31:42 -0400 (EDT) From: Tom Lane To: murrayc@murrayc.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path In-reply-to: References: Comments: In-reply-to murrayc@murrayc.com message dated "Sat, 01 Sep 2012 04:16:57 -0000" Date: Tue, 04 Sep 2012 10:31:41 -0400 Message-ID: <16738.1346769101@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201209/20 X-Sequence-Number: 34015 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