Re: Would it be possible to add functions to tab-completion in psql? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Would it be possible to add functions to tab-completion in psql?
Date
Msg-id 20220816130114.GA22122@depesz.com
Whole thread Raw
In response to Re: Would it be possible to add functions to tab-completion in psql?  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: Would it be possible to add functions to tab-completion in psql?
List pgsql-general
On Tue, Aug 16, 2022 at 07:42:27AM -0500, Ron wrote:
> On 8/16/22 07:28, hubert depesz lubaczewski wrote:
> > Hi,
> > As a dba I have to, very often, query system functions, starting with
> > pg_last_xact_replay_timestamp and pg_current_wal_lsn.
> > 
> > Would it be possible/hard/expensive, to change tab-completion so that:
> > 
> > select pg_<tab> would work?
> 
> It does, in the psql 9.6 and 12 that I installed from it's native
> repositories, and the psql 12 installed from RHEL 7/8 native repositories.

Hmm .. I'm on Pg 16, linked with readline, and pressing tab after
select pg_
just produces new prompt:

https://asciinema.org/a/A8w16KhXF7bK4iz7hE7iyyo0D

Can you please show me this working, with "which psql", and "ldd $(
which psql )" using asciinema?

Best regards,

depesz




pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Would it be possible to add functions to tab-completion in psql?
Next
From: Ron
Date:
Subject: Re: Would it be possible to add functions to tab-completion in psql?