pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Would it be possible to add functions to tab-completion in psql?
Date: Tue, 16 Aug 2022 15:01:14 +0200
Message-ID: <20220816130114.GA22122@depesz.com> (raw)
In-Reply-To: <d6d06ded-d795-ff81-d4e8-13d5bdf981d0@gmail.com>
References: <20220816122849.GC24417@depesz.com>
	<d6d06ded-d795-ff81-d4e8-13d5bdf981d0@gmail.com>

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






view thread (11+ messages)  latest in thread

Message-ID: <20220816130114.GA22122@depesz.com>
Permalink:  ../20220816130114.GA22122@depesz.com/
Also on:    postgresql.org/message-id/20220816130114.GA22122@depesz.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: depesz@depesz.com, ronljohnsonjr@gmail.com
  Subject: Re: Would it be possible to add functions to tab-completion in psql?
  In-Reply-To: <20220816130114.GA22122@depesz.com>
  References: <20220816122849.GC24417@depesz.com> <d6d06ded-d795-ff81-d4e8-13d5bdf981d0@gmail.com> <20220816130114.GA22122@depesz.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