Re: Tab completion for ALTER COLUMN SET STATISTICS - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Tab completion for ALTER COLUMN SET STATISTICS
Date
Msg-id CAB7nPqTUFGj-a24=JbV_SYAqGwkBr6Tt8wV9Z4Edti_ZTEZaUQ@mail.gmail.com
Whole thread Raw
In response to Tab completion for ALTER COLUMN SET STATISTICS  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Tab completion for ALTER COLUMN SET STATISTICS  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Sat, Sep 26, 2015 at 7:18 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
> If I have "alter table foo alter COLUMN bar SET STATISTICS" in the line
> buffer,
> it tab completes to add " TO", which is not legal.
>
> The attached patch makes it not tab complete anything at all, which is at
> least not actively misleading.
> I thought of having it complete "-1", "<integer>" so that it gives a clue
> about what is needed, but I didn't see any precedence for non-literal
> clue-giving and I did not want to try to create new precedence.

+1 for the way you are doing it in your patch.
-- 
Michael



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan
Next
From: Tomas Vondra
Date:
Subject: Re: PATCH: index-only scans with partial indexes