From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Kirk Wolak <wolakk(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: psql suggestion "select <tab>" offers nothing, can we get functions like "\df <tab>" |
Date: | 2025-04-03 18:55:52 |
Message-ID: | CAFj8pRBJPf_eQFhvCMwqouU6DVwYD84rw8K03QLLXwKGGCyTTg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
čt 3. 4. 2025 v 20:17 odesílatel Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> napsal:
> Kirk Wolak <wolakk(at)gmail(dot)com> writes:
> > But "select <tab>" does nothing.
>
> What would you have it offer? Every single column and function name
> in the database? Seems unlikely to be very helpful.
>
> postgres=# select count(distinct attname) from pg_attribute;
> count
> -------
> 1218
> (1 row)
>
> postgres=# select count(distinct proname) from pg_proc;
> count
> -------
> 2787
> (1 row)
>
> That's with zero user-defined objects.
>
you can try https://www.pgcli.com/
the tab complete there is better (or different) than in psql. I don't use
it, but I know people who use it well.
I agree so tab complete for functions can be nice feature. It is a question
if it can work with readline. At the end it is always faster for me to
write \df *reset*, and using mouse for copy
Regards
Pavel
>
> regards, tom lane
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Lakhin | 2025-04-03 19:00:00 | Re: SQLFunctionCache and generic plans |
Previous Message | Tomas Vondra | 2025-04-03 18:53:57 | Re: Draft for basic NUMA observability |