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 1ikvpl-00071j-JB for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Dec 2019 20:03:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikvpk-0005lP-Cl for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Dec 2019 20:03:40 +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 1ikvpj-0005lG-U7 for pgsql-hackers@lists.postgresql.org; Fri, 27 Dec 2019 20:03:40 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ikvph-0005fD-C1 for pgsql-hackers@lists.postgresql.org; Fri, 27 Dec 2019 20:03:38 +0000 Received: by mail-pj1-x1044.google.com with SMTP id j11so5149258pjs.1 for ; Fri, 27 Dec 2019 12:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=LruFag8j2OQHm9u3xnBMGK4tKdlk+3ry/T0GUp8Ar54=; b=QDCa+FHu6uUp6l6oY5oiQmRkAMq2sciwXPhv2QOerC5f3mGiO22t0Vh0kYgAUBbv8P AWOqQo4uyHdwfN79UfpsHO5P1cD0Z5dr+GBYjKI+ahUZYmwJKNmjZuCsveKp6VRY+Q0P Yj6Mok/26s80nI94hWCWuYIpT89blwBg5zxJCI9Ob17o7kGIWsYjiHlanxrkyC56KFp1 h1DUdolXgCQGGrrv8N3GjL+6xZ3GFI/blNvjLzPZsDkRvQWeSvy/5gACc95noqgn/fE0 oTiCkoxx2Lkvd5AjCldb4A0tBY7nxjWscFOzLxUOtf32oylsv9lKNEwl3aJ3xddwz6sZ 4RSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LruFag8j2OQHm9u3xnBMGK4tKdlk+3ry/T0GUp8Ar54=; b=tNbprxMw51gmA/jE0NMxO7wFDUfRz3zAnPeGTWQCLvGFU5KK4Y7JEOEjIVAcz11I+0 Iwgy5clZUK8LejnqLN/YjJVNLnEreZBhyfufZOxr1OQK5859IvD6QeDrr7g9X/GrjXjK Af+wIw/I5xQBoACrZCkq14MhRO4Vgv7L/dLbftSVqMTM1SpxvOqcL5DT/i50LRIWbR6t QmroJMjTtYijwkf7RF5ZHsy9aQ95F1FGjgthZhcqtS9efsrSF9RUGInv8pkNVJyaPmSu jkw7RA2S14yPBHLbNS9NoYB0tuZgQ1uWQjB6eIb2GRyhSSrzTqp9Xw0ryTGC4RtXEm58 EUhQ== X-Gm-Message-State: APjAAAVUwMS7e/Z39vLOA86uE9vzQqTx4/tPbW0gtlV5Fa5HE93DnJ1t 8oGg3xWM7DdAoUTZ3IWazVzffA== X-Google-Smtp-Source: APXvYqzSzRzfnT+NTLcKBaL+Zxw1R5a8YzUASwSaHZghoGLMwlKmxgmeMwoiWDOHUvCgeyPlV/Rr3g== X-Received: by 2002:a17:90a:d0c1:: with SMTP id y1mr27604559pjw.126.1577477016012; Fri, 27 Dec 2019 12:03:36 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id r20sm38934695pgu.89.2019.12.27.12.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 12:03:35 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 32CE23008FE; Fri, 27 Dec 2019 17:03:33 -0300 (-03) Date: Fri, 27 Dec 2019 17:03:33 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, steven.winfield@cantabcapital.com Subject: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes Message-ID: <20191227200333.GA20015@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <28922.1577474837@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Dec-27, Tom Lane wrote: > I wrote: > > [ psql-filename-completion-fixes-2.patch ] > > The cfbot noted this was broken by the removal of pg_config.h.win32, > so here's a new version rebased over that. No changes other than > adjusting the MSVC autoconf-substitute code. Works well for me. One minor thing I noticed is that if I enter \copy t from '/tmp/t' and I have files /tmp/t and /tmp/tst then it removes the ending quote. I can live with that, since the tab there is pointless anyway. (The unpatched version removes *both* quotes. The quotes there are not mandatory, but the new version works better when there are files with whitespace in the name.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services