Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhJrl-0008Qu-Q7 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2016 17:08:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bhJrl-0007j1-32 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2016 17:08:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhJrj-0007i9-VH for pgsql-hackers@postgresql.org; Tue, 06 Sep 2016 17:08:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhJrh-0007E5-LG for pgsql-hackers@postgresql.org; Tue, 06 Sep 2016 17:08:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u86H8p6N026517; Tue, 6 Sep 2016 13:08:51 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: Re: [COMMITTERS] pgsql: Make initdb's suggested "pg_ctl start" command line more reliabl In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Tue, 06 Sep 2016 12:19:31 -0400" Date: Tue, 06 Sep 2016 13:08:51 -0400 Message-ID: <26516.1473181731@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut writes: > On 8/20/16 3:05 PM, Tom Lane wrote: >> Make initdb's suggested "pg_ctl start" command line more reliable. > A couple of problems with this: > The not-quoting-if-not-needed doesn't appear to do anything useful for me: > 'pg-install/bin/pg_ctl' -D 'pg-install/var/data' -l logfile start Dash is considered a character that needs quoting. It might be possible to avoid that if we could be certain that appendShellString's output would never be placed in a spot where it could be taken for a switch, but that seems like a large assumption to me. Or maybe we could treat it as forcing quotes only if it starts the string; but I don't personally care enough to write the code for that. Feel free if you want to. > The indentation of that line was changed from 4 to 10. I don't think > that was a good change. Hmm, not intentional ... [ looks closely... ] Looks like a tab got in there somehow. Will fix. > As just mentioned elsewhere, this accidentally introduces a failure if > the PostgreSQL installation path contains LF/CR, because of the use of > appendShellString(). I think that's intentional, not accidental. What actual use case is there for allowing such paths? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers