pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Дилян Палаузов <dpa-postgres@aegee.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: psql and readline comments
Date: Mon, 28 Jan 2019 14:17:31 -0500
Message-ID: <20190128191731.GC26761@momjian.us> (raw)
In-Reply-To: <87womsjbpq.fsf@news-spur.riddles.org.uk>
References: <201901141559.ne4yhv2nwsl5@alvherre.pgsql>
	<82eab8ea-5d9d-efab-dcc8-d7713d2b0645@2ndquadrant.com>
	<20190126001801.GL13803@momjian.us>
	<87womsjbpq.fsf@news-spur.riddles.org.uk>

On Sat, Jan 26, 2019 at 04:41:17AM +0000, Andrew Gierth wrote:
> >>>>> "Bruce" == Bruce Momjian <bruce@momjian.us> writes:
> 
>  Bruce> Agreed. I am not sure how someone would conditionally bind M-#
>  Bruce> to -- _only_ in psql,
> 
> By doing this in .inputrc:
> 
> $if psql
> set comment-begin "--"
> $endif
> 
> (observe that we set rl_readline_name in order to allow this)
> 
> But that shouldn't necessarily stop us doing the setting in psql by
> default - it just needs to be verified that it does compile against the
> libedit versions people are actually using, and not break anything. (On
> the libedit on my system, rl_variable_bind ends up trying to bind the
> variable as a _key_, and I have no idea what effect that would have if
> any. Note that libedit does not seem to bind M-# by default.)

Uh, bind as a key?  Does the patch have any effect then?  If not, maybe
we should just do this for libreadline.

-- 
  Bruce Momjian  <bruce@momjian.us>        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 +




view thread (13+ messages)  latest in thread

Message-ID: <20190128191731.GC26761@momjian.us>
Permalink:  ../20190128191731.GC26761@momjian.us/
Also on:    postgresql.org/message-id/20190128191731.GC26761@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, andrew@tao11.riddles.org.uk, peter.eisentraut@2ndquadrant.com, alvherre@2ndquadrant.com, dpa-postgres@aegee.org, tgl@sss.pgh.pa.us
  Subject: Re: psql and readline comments
  In-Reply-To: <20190128191731.GC26761@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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox