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 1if3a2-0002QQ-AG for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 15:07:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if3a0-0003qN-Vm for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 15:07:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if3a0-0003qG-MT for pgsql-hackers@lists.postgresql.org; Wed, 11 Dec 2019 15:07:08 +0000 Received: from mail-vk1-xa44.google.com ([2607:f8b0:4864:20::a44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if3Zx-0003Hu-HS for pgsql-hackers@lists.postgresql.org; Wed, 11 Dec 2019 15:07:08 +0000 Received: by mail-vk1-xa44.google.com with SMTP id e5so2826251vkn.5 for ; Wed, 11 Dec 2019 07:07:04 -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=9jtckeal0/uHTRTWUSh2ZTuoPVhankmW6Cr8p4rg5qA=; b=ZhmInQ/gUDaMeFR6tYZB3bd3DNu6wQw4xuSSdxr+xYJ5Uzstn5mUMUC6sRj7V6xa6D T0UFuuJjs2R4d7KiYyAs7hB8CBy9xGWMMZ6C5WBHjppA3gcFxSs8frV2quqqcCbZDFll qfdNk7t64zzGIqunkjG5A94xgt90n1GKkr/zLJORWXtHWzTgygXrd8t+6dnw1eGIFrKl qzfhagPQQu0aFev9tQ82p09OoCH7BTcJW0msIu5cPFglm6zGTZAcO2CraDN01aQU1b/9 bLdvQHSEhHhwdULC+99ruI724v//yPiAK0htvZc2T6bEI1iixpndFVdG2BaxoRMEZhHE gYUA== 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=9jtckeal0/uHTRTWUSh2ZTuoPVhankmW6Cr8p4rg5qA=; b=Q91MiV/JIRhtGpZQB38mQ6ugzEa7i/DpIdfF1DBPVegeh9NKF/DY5Jzm6UmdZ7M0k3 I3GFzCJ4U/UjzuXHmNJ6mduOnPTj8vah71YGvBGLBmrdctfo9Nh1w/9p47aYzeupvtbR hlhFK26cnBgUh7ai6laDRwebIE47wMQxbkdkIXY9egmoqc4Zh1WDyqDn5wLD2739giZk yCxEjUcTSSMGIjyrMdFqq0cVDOkmB74aVhcmjElp01xr+jL8GDnLr8Kbr2DXLpsRXBLd umXR5tvsWEJiswJy3ANJztaUSOLRtuDH3uFQk1HIOdHkZ1s2G5xeWeg9q6fRO6adNLjt 9m1w== X-Gm-Message-State: APjAAAXNjTkcJUTaiFwuheNMkqiKZjUs2eJbfu1th9l8rAz+H4NjSsDr gHbG246jvyWxymyf4M6CE/4nnQ== X-Google-Smtp-Source: APXvYqzGKKF2IHltXojCgLpDSHN6YJUo17JHZZU2KUT9iTULijS0BdH3wbYuh/wZvzMdqtXnHGeUpw== X-Received: by 2002:a1f:bdd0:: with SMTP id n199mr3975517vkf.86.1576076823242; Wed, 11 Dec 2019 07:07:03 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.95.19.128]) by smtp.gmail.com with ESMTPSA id x127sm1544326vkf.29.2019.12.11.07.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 07:07:02 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C9CEE3009ED; Wed, 11 Dec 2019 12:06:37 -0300 (-03) Date: Wed, 11 Dec 2019 12:06:37 -0300 From: Alvaro Herrera To: Robert Haas Cc: Tom Lane , PostgreSQL Hackers , steven.winfield@cantabcapital.com Subject: Re: BUG #16059: Tab-completion of filenames in COPY commands removes required quotes Message-ID: <20191211150637.GA21159@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-11, Robert Haas wrote: > On Sun, Nov 3, 2019 at 5:40 PM Tom Lane wrote: > > Of course, this only works if we have those hooks :-(. So far as > > I can tell, all libreadline variants that might still exist in the wild > > do have them; but libedit doesn't, at least not in the version Apple > > is shipping. Hence, what the attached patch does is to make configure > > probe for the existence of the hook variables; if they're not there, > > fall back to what I proposed previously. > > Are people still compiling against libedit and then redirecting to > libreadline at runtime? I seem to recall some discussion about this > being a thing, many years ago. Yeah, Debian did that out of licensing concerns. It seems they still do that, based on https://packages.debian.org/bullseye/postgresql-client-12 > If it were being done it would be > advantageous to have the checks be runtime rather than compile-time, > although I guess that would probably be tough to make work. Yeah. On the other hand, I suppose Debian uses the BSD version of the libraries, not the Apple version, so I think it should be fine? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services