From: hubert depesz lubaczewski <depesz@depesz.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-general mailing list <pgsql-general@postgresql.org>
Subject: Re: Would it be possible to add functions to tab-completion in psql?
Date: Tue, 16 Aug 2022 15:59:12 +0200
Message-ID: <20220816135912.GA14225@depesz.com> (raw)
In-Reply-To: <20220816135534.ppgkyfn3emn3hbwm@jrouhaud>
References: <20220816122849.GC24417@depesz.com>
<20220816135534.ppgkyfn3emn3hbwm@jrouhaud>
On Tue, Aug 16, 2022 at 09:55:34PM +0800, Julien Rouhaud wrote:
> On Tue, Aug 16, 2022 at 02:28:49PM +0200, 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?
> That specific example may be easy to do, but others like e.g.
> SELECT pg_size_pretty(pg_rel<TAB>
While I would appreciate having full tab-completion on every level,
I wouldn't be happy with just first-level.
Basically I feel that "because we can't get it perfect" it obscuring the
fact that imperfect would be very useful.
Best regards,
depesz
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, rjuju123@gmail.com
Subject: Re: Would it be possible to add functions to tab-completion in psql?
In-Reply-To: <20220816135912.GA14225@depesz.com>
References: <20220816122849.GC24417@depesz.com> <20220816135534.ppgkyfn3emn3hbwm@jrouhaud> <20220816135912.GA14225@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