On Tue, Jan 29, 2019 at 04:59:40AM +0000, Andrew Gierth wrote:
> >>>>> "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.
Seems like adding this would be more trouble than it is worth then.
--
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 +