pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: External psql editor
Date: Mon, 2 May 2022 18:41:38 -0400
Message-ID: <34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com> (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>

On 5/2/22 17:27, Tom Lane wrote:
> 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.
>
> 			regards, tom lane
>
>
That is easy enough to determine:

mgogala@umajor ~]$ ldd `which psql`
     linux-vdso.so.1 (0x00007ffded951000)
     libpq.so.private13-5 => /lib64/libpq.so.private13-5 
(0x00007ff145284000)
_*libreadline.so.8 => /lib64/libreadline.so.8 (0x00007ff14522c000)*_
     libm.so.6 => /lib64/libm.so.6 (0x00007ff145150000)
     libc.so.6 => /lib64/libc.so.6 (0x00007ff144f49000)
     libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007ff144eac000)
     libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007ff144bbe000)
     libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007ff144b65000)
     libldap_r-2.4.so.2 => /lib64/libldap_r-2.4.so.2 (0x00007ff144b09000)
     libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007ff144ada000)
     /lib64/ld-linux-x86-64.so.2 (0x00007ff14539a000)
     libz.so.1 => /lib64/libz.so.1 (0x00007ff144ac0000)
     libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007ff1449e2000)
     libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007ff1449ca000)
     libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007ff1449c1000)
     libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007ff1449b0000)
     libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007ff1449a9000)
     libresolv.so.2 => /lib64/libresolv.so.2 (0x00007ff144995000)
     liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007ff144982000)
     libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007ff144962000)
     libselinux.so.1 => /lib64/libselinux.so.1 (0x00007ff144935000)
     libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007ff1448fb000)
     libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007ff144864000)
[mgogala@umajor ~]$

Regards

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (26+ messages)  latest in thread

Message-ID: <34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com>
Permalink:  ../34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com/
Also on:    postgresql.org/message-id/34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com

 · 

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: gogala.mladen@gmail.com
  Subject: Re: External psql editor
  In-Reply-To: <34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com>
  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> <34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com>

* 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