Re: External psql editor - Mailing list pgsql-general

From Steve Litt
Subject Re: External psql editor
Date
Msg-id 20220503014941.1b2f72d1@mydesk.domain.cxm
Whole thread Raw
In response to Re: External psql editor  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: External psql editor
List pgsql-general
Tom Lane said on Mon, 02 May 2022 17:27:15 -0400

>Rich Shepard <rshepard@appl-ecosys.com> writes:
>> On Mon, 2 May 2022, Reid Thompson wrote:  
>>> I believe that psql also uses readline, so my thought was that
>>> maybe these instructions could enable you to map the 'move'
>>> keystrokes that you're familiar with to be used while on the psql
>>> command line. A very quick test seems to indicate that you can.  
>
>> Nope. No difference.  
>
>Perhaps your psql is built against libedit rather than readline.

If this is indeed true, he can give his psql readline capabilities by
installing rlwrap and performing the following command:

rlwrap psql

HTH,

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: UUID vs serial and currval('sequence_id')
Next
From: "Peter J. Holzer"
Date:
Subject: Re: External psql editor