From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Дилян Палаузов <dpa-postgres(at)aegee(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: psql and readline comments |
Date: | 2019-01-26 00:18:01 |
Message-ID: | 20190126001801.GL13803@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Fri, Jan 18, 2019 at 09:18:09AM +0100, Peter Eisentraut wrote:
> On 14/01/2019 16:59, Alvaro Herrera wrote:
> > I agree -- it doesn't make sense to treat the insert-comment command as
> > inserting a #, which is not a comment for psql. I use meta-# often in
> > bash and I'm never happy to have to resort to manually prepending "--"
> > in psql in order to make the current line a comment instead.
>
> I have found
>
> rl_variable_bind("comment-begin",";");
>
> in the clisp code, so it seems it's not unheard of to do this sort of thing.
Agreed. I am not sure how someone would conditionally bind M-# to --
_only_ in psql, so it seems doing it in psql might be the logical, and
only choice. I see rl_variable_bind() referenced in libedit:
https://android.googlesource.com/platform/external/libedit/+/refs/heads/master/src/readline.c
so I think we are good in applying this to master.
--
Bruce Momjian <bruce(at)momjian(dot)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 +
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Gierth | 2019-01-26 04:41:17 | Re: psql and readline comments |
Previous Message | Gavin Flower | 2019-01-25 23:27:15 | Re: How duplicate values inserted into the primary key column of table and how to fix it |