pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Litt <slitt@troubleshooters.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: External psql editor
Date: Tue, 3 May 2022 01:49:41 -0400
Message-ID: <20220503014941.1b2f72d1@mydesk.domain.cxm> (raw)
In-Reply-To: <1885615.1651526835@sss.pgh.pa.us>
References: <edf1cfa4-35bf-66bf-4de2-7a3bbcb6c5e4@appl-ecosys.com>
	<7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info>
	<89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com>
	<ce8ee8c0-cb6b-c114-47be-275730af91de@wi3ck.info>
	<a1d4d0ca-11bb-ee2c-a348-fb3098e21dd@appl-ecosys.com>
	<972d9c5f4293b858a5b505e6af8debd1ca16cf3c.camel@nc.rr.com>
	<478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com>
	<06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com>
	<fa6c5e3-177d-d03e-86a4-4c95b9ad8932@appl-ecosys.com>
	<1885615.1651526835@sss.pgh.pa.us>

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





view thread (26+ messages)  latest in thread

Message-ID: <20220503014941.1b2f72d1@mydesk.domain.cxm>
Permalink:  ../20220503014941.1b2f72d1@mydesk.domain.cxm/
Also on:    postgresql.org/message-id/20220503014941.1b2f72d1@mydesk.domain.cxm

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: slitt@troubleshooters.com
  Subject: Re: External psql editor
  In-Reply-To: <20220503014941.1b2f72d1@mydesk.domain.cxm>
  References: <edf1cfa4-35bf-66bf-4de2-7a3bbcb6c5e4@appl-ecosys.com> <7fef2d5f-6698-0bb5-11fe-ffd042a24ab1@wi3ck.info> <89e71248-2fa8-c6ee-9546-93286947ed3b@appl-ecosys.com> <ce8ee8c0-cb6b-c114-47be-275730af91de@wi3ck.info> <a1d4d0ca-11bb-ee2c-a348-fb3098e21dd@appl-ecosys.com> <972d9c5f4293b858a5b505e6af8debd1ca16cf3c.camel@nc.rr.com> <478d98fa-93a6-3c27-a9d4-8d735fdba18a@appl-ecosys.com> <06c83dc5167c9a1b3a724cab7e257591b5798ff9.camel@nc.rr.com> <fa6c5e3-177d-d03e-86a4-4c95b9ad8932@appl-ecosys.com> <1885615.1651526835@sss.pgh.pa.us> <20220503014941.1b2f72d1@mydesk.domain.cxm>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox