Re: External psql editor

From: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: External psql editor
Date: 2022-05-02 22:41:38
Message-ID: 34236f4e-1c79-2301-5cd6-8a88add506cf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/2/22 17:27, Tom Lane wrote:
> Rich Shepard<rshepard(at)appl-ecosys(dot)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(at)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(at)umajor ~]$

Regards

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Stanford 2022-05-02 23:24:24 Re: UUID vs serial and currval('sequence_id')
Previous Message David G. Johnston 2022-05-02 22:39:05 Re: UUID vs serial and currval('sequence_id')