Re: psql and readline comments - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: psql and readline comments
Date
Msg-id 87bm40hyg1.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: psql and readline comments  (Bruce Momjian <bruce@momjian.us>)
Responses Re: psql and readline comments  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
>>>>> "Bruce" == Bruce Momjian <bruce@momjian.us> 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.

-- 
Andrew (irc:RhodiumToad)


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15611: pg_dump output changes after doing a restore with certain views
Next
From: Andrew Gierth
Date:
Subject: Re: BUG #15609: synchronous_commit=off insert performance regression with secondary indexes