Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inHnL-0005AR-L9 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 07:54:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inHnK-00049Z-0P for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2020 07:54:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inHnI-00047b-KI for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2020 07:54:53 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1inHnF-0002Vl-GU for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2020 07:54:51 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 84F7E221F7; Fri, 3 Jan 2020 02:54:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 03 Jan 2020 02:54:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=3C7iKdUWNZp4fQQTxBEUR006OWZeX91T13JbINX1L /o=; b=Ek+0fTLfrl1jts0EqdUkkr/m/j/rvyTgJH4e3NyOJ0/t8qxxlzjE9bPbE ZafQjWDI8dFmCRhL1kUsEg8fH6/+v4Mca30w/Y4xVoVJZuDneJFCXUkG7VNWaFFX 0oRWif/WO8lqSCPiydIF2BxCVo0GYHDWwHzufmi2Rqt7vIonMOPPwxAxtTtQEq92 Wu2RyotuhcsbBidHfKY3e1DAgfHl/M2YvGQaSCXHMRBPyV2y9MN9jXq/u4RSFQqV VM1juiJlr5tAC8CfhmkJK4EWpAJzZj1gzjewqGRla+q+fLYe9Y6reoxZ4H99IOs3 acySsKJ30bIXBrtmO3UYlsryhdUJQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdegvddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgse htjeertddtfeehnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuffhomh grihhnpedvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrudekjedr udeggeenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruh htsedvnhguqhhurggurhgrnhhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df3bb90.dip0.t-ipconnect.de [93.243.187.144]) by mail.messagingengine.com (Postfix) with ESMTPA id 6967480061; Fri, 3 Jan 2020 02:54:37 -0500 (EST) Subject: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes To: Tom Lane , pgsql-hackers@lists.postgresql.org References: <16059-8836946734c02b84@postgresql.org> <30313.1572729260@sss.pgh.pa.us> <1628.1572820800@sss.pgh.pa.us> Cc: steven.winfield@cantabcapital.com From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <6ccd23e4-ce58-c2b5-39a1-801a9937ae86@2ndquadrant.com> Date: Fri, 3 Jan 2020 08:54:35 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1628.1572820800@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-11-03 23:40, Tom Lane wrote: > * The patch now always quotes completed filenames, so quote_if_needed() > is misnamed and overcomplicated for this use-case. I left the extra > generality in place for possible future use. On the other hand, this > is the*only* use-case, so you could also argue that we should just > simplify the function's API. I have no strong opinion about that. I haven't found an explanation in this thread why it does always quote now. That seems a bit unusual. Is there a reason for this? Can we do without it? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services