Thread: [PATCH] psql: add tab completion for \df slash command suffixes

[PATCH] psql: add tab completion for \df slash command suffixes

From
Ian Barwick
Date:
Hi

I just noticed "\df[TAB]" fails to offer any tab-completion for
the possible suffixes ("\dfa", "\dfn", "\dfp", "\dft" and "\dfw").
Trivial patch attached, which applies back to Pg96, and separate
patches for Pg95 and Pg94.

I'll add this to the next commitfest.

Regards

Ian Barwick

-- 
  Ian Barwick                   https://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services

Attachment

Re: [PATCH] psql: add tab completion for \df slash command suffixes

From
Kuntal Ghosh
Date:
Hello Ian,

On Fri, Aug 30, 2019 at 10:31 AM Ian Barwick
<ian.barwick@2ndquadrant.com> wrote:
> I just noticed "\df[TAB]" fails to offer any tab-completion for
> the possible suffixes ("\dfa", "\dfn", "\dfp", "\dft" and "\dfw").
> Trivial patch attached, which applies back to Pg96, and separate
> patches for Pg95 and Pg94.
>
> I'll add this to the next commitfest.
I've reviewed the patch. It works as expected in master. But, the
syntax "\dfp" doesn't exist beyond Pg11. So, you've to remove the same
from the patches for Pg95 and Pg94. I guess the same patch should be
applied on Pg10 and Pg96.



-- 
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com



Re: [PATCH] psql: add tab completion for \df slash command suffixes

From
Ian Barwick
Date:
On 2019/09/04 15:14, Kuntal Ghosh wrote:
> Hello Ian,
> 
> On Fri, Aug 30, 2019 at 10:31 AM Ian Barwick
> <ian.barwick@2ndquadrant.com> wrote:
>> I just noticed "\df[TAB]" fails to offer any tab-completion for
>> the possible suffixes ("\dfa", "\dfn", "\dfp", "\dft" and "\dfw").
>> Trivial patch attached, which applies back to Pg96, and separate
>> patches for Pg95 and Pg94.
>>
>> I'll add this to the next commitfest.
> I've reviewed the patch. It works as expected in master. But, the
> syntax "\dfp" doesn't exist beyond Pg11. So, you've to remove the same
> from the patches for Pg95 and Pg94. I guess the same patch should be
> applied on Pg10 and Pg96.

Ah, good catch, I will update and resubmit.


Thanks!

Ian Barwick


-- 
  Ian Barwick                   https://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services



Re: [PATCH] psql: add tab completion for \df slash command suffixes

From
Michael Paquier
Date:
On Wed, Sep 04, 2019 at 03:19:57PM +0900, Ian Barwick wrote:
> Ah, good catch, I will update and resubmit.

Ping.  Ian, could you update and resubmit please?
--
Michael

Attachment