Re: Correct handling of blank/commented lines in PSQL interactive-mode history - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Correct handling of blank/commented lines in PSQL interactive-mode history
Date
Msg-id a9127baa-dc0d-faf9-797f-e798735830c7@enterprisedb.com
Whole thread Raw
In response to Re: Correct handling of blank/commented lines in PSQL interactive-mode history  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 07.09.21 21:16, Tom Lane wrote:
> [ this is a digression from the main point of the thread, but ... ]
> 
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> I am particularly bothered by the uselessness
>> that M-# results in -- namely, inserting a # at the start of the buffer.
> 
> Fixing that might be as simple as the attached.  I've not beat on
> it hard though.

I see this in my .inputrc, although I don't remember when/how I put it 
there:

$if psql
set comment-begin --
set expand-tilde on
$endif



pgsql-hackers by date:

Previous
From: gkokolatos@pm.me
Date:
Subject: Re: Teach pg_receivewal to use lz4 compression
Next
From: Amit Kapila
Date:
Subject: Re: Logical replication keepalive flood