Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAHth-0006Bs-Bc for pgsql-bugs@arkaria.postgresql.org; Mon, 15 May 2017 15:26:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dAHtg-0006C4-Ud for pgsql-bugs@arkaria.postgresql.org; Mon, 15 May 2017 15:26:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAHsz-0003mL-Ql for pgsql-bugs@postgresql.org; Mon, 15 May 2017 15:26:13 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAHsw-00080r-O3 for pgsql-bugs@postgresql.org; Mon, 15 May 2017 15:26:12 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 61F8720B2E; Mon, 15 May 2017 11:26:09 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Mon, 15 May 2017 11:26:09 -0400 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-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=9MThfT6ZDR8Z8oc1vd5ylgBxejyEXoyfYbANOSYNjeM=; b=WVTqEbe3 Rg0VW+yamzj3KvhkPPk5v+JHoe1D5QVx4PwyktCeAGod8ac/19/cioQ8bt8VSSKI WAkfQAQElDwJCRvXE2Yf4VYVSDUB2nsMXdI77uH5aHaPK8TSCqLbvd7lbwa0iUvm Qw4JRxPHJxMJT+1RTxa+h1iFtuKWUW7Fstntgit4b6+KSqmDhL/UUhdwsnPrjJ1v mn9qx+sSWND79BSas16hn1OvEikLxFpUA1W2w+0u8ZPL9jaxfYmxwxca355CmvmD fKuKWVrbQUVXCbDLikw6RjDd0A4OZ4mwsv3A/dAUKQI0kU5guInUTxGnGHqPNyA0 hZe8tKflmptlVw== X-ME-Sender: X-Sasl-enc: flBN4itOU4DvE/X2N9Qaq3CNaKuVXlRPkJgqdlfXA5LK 1494861969 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id EA9317E86A; Mon, 15 May 2017 11:26:08 -0400 (EDT) Subject: Re: psql history and "-- lines" To: Tom Lane , =?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0Lc=?= =?UTF-8?B?0L7Qsg==?= References: <48b3a5ac-d219-6568-6751-260b1387bc37@aegee.org> <19006.1494033923@sss.pgh.pa.us> <7127.1494112662@sss.pgh.pa.us> Cc: pgsql-bugs@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <0afcbc3f-8c1c-c576-824a-5cc02e5a81e5@2ndquadrant.com> Date: Mon, 15 May 2017 11:26:08 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <7127.1494112662@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 5/6/17 19:17, Tom Lane wrote: >> + rl_variable_bind("comment-begin", "--"); > Interesting thought, but IIUC that's a setting that would be better left > to the user's ~/.inputrc, or might indeed override something he's put > there. I'm also dubious how well it works across all the versions of > readline and libedit that are out there. Hmm, this variable appears with other customization settings, but it's clearly something that is specific to the syntax you are typing in, so pre-setting it makes sense. I think this is something we can play with in PG11. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs