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 1gocOi-0002tH-2U for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2019 23:02:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gocOe-0004Zs-NI for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2019 23:02:24 +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 1gocOe-0004Zl-HA for pgsql-bugs@lists.postgresql.org; Tue, 29 Jan 2019 23:02:24 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gocOb-0001cE-OU for pgsql-bugs@postgresql.org; Tue, 29 Jan 2019 23:02:23 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1gocOU-00024d-L5; Tue, 29 Jan 2019 18:02:14 -0500 Date: Tue, 29 Jan 2019 18:02:14 -0500 From: Bruce Momjian To: Andrew Gierth Cc: Peter Eisentraut , Alvaro Herrera , =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= , Tom Lane , pgsql-bugs@postgresql.org Subject: Re: psql and readline comments Message-ID: <20190129230214.GD25187@momjian.us> References: <201901141559.ne4yhv2nwsl5@alvherre.pgsql> <82eab8ea-5d9d-efab-dcc8-d7713d2b0645@2ndquadrant.com> <20190126001801.GL13803@momjian.us> <87womsjbpq.fsf@news-spur.riddles.org.uk> <20190128191731.GC26761@momjian.us> <87bm40hyg1.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bm40hyg1.fsf@news-spur.riddles.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jan 29, 2019 at 04:59:40AM +0000, Andrew Gierth wrote: > >>>>> "Bruce" == Bruce Momjian writes: > > Bruce> Uh, bind as a key? Does the patch have any effect then? > > As I said, libedit does not bind M-# by default, and has no equivalent > to readline's comment-begin variable. I have no idea what the patch > would do when linked against libedit without actually trying it out > (which I have not done). > > Bruce> If not, maybe we should just do this for libreadline. > > Bear in mind that for licensing reasons, some package builds build psql > against libedit but then wedge readline in at runtime using LD_PRELOAD. > So doing things differently at compile time based on whether it's > libedit or readline will not work well with that. Seems like adding this would be more trouble than it is worth then. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +