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 1ifndy-0007a9-7M for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Dec 2019 16:18:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ifndx-0006hx-3a for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Dec 2019 16:18:17 +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 1ifndw-0006hq-Np for pgsql-hackers@lists.postgresql.org; Fri, 13 Dec 2019 16:18:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ifndu-0005iZ-D4 for pgsql-hackers@lists.postgresql.org; Fri, 13 Dec 2019 16:18:15 +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 xBDGI90c024091; Fri, 13 Dec 2019 11:18:09 -0500 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@lists.postgresql.org, steven.winfield@cantabcapital.com Subject: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes In-reply-to: <20191213153805.GA2808@alvherre.pgsql> References: <20191213153805.GA2808@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 13 Dec 2019 12:38:05 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24089.1576253889.1@sss.pgh.pa.us> Date: Fri, 13 Dec 2019 11:18:09 -0500 Message-ID: <24090.1576253889@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Dec-13, Tom Lane wrote: >> A possible further change is to switch the code over to calling >> "rl_filename_completion_function", and then invert the sense of >> this logic, like ... > +1, I think that's clearer. OK, I went ahead and pushed that change, since it seems separate and uncontroversial. I'll send along a new patch for the main change in a little bit. regards, tom lane