mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08:00
Improve tab completion for ALTER STATISTICS <name> SET in psql
The code was completing this pattern with a list of settable characters, and it was possible to reach this state after completing a "ALTER STATISTICS <name>" with SET. Author: Vignesh C Discussion: https://postgr.es/m/CALDaNm2HHF_371o+EeSjxDDS17Cx7d-ko2h1fLU94=ob=4_ktg@mail.gmail.com
This commit is contained in:
parent
14a737bfdb
commit
3cf2f7af7f
@ -2216,6 +2216,9 @@ psql_completion(const char *text, int start, int end)
|
||||
/* ALTER STATISTICS <name> */
|
||||
else if (Matches("ALTER", "STATISTICS", MatchAny))
|
||||
COMPLETE_WITH("OWNER TO", "RENAME TO", "SET SCHEMA", "SET STATISTICS");
|
||||
/* ALTER STATISTICS <name> SET */
|
||||
else if (Matches("ALTER", "STATISTICS", MatchAny, "SET"))
|
||||
COMPLETE_WITH("SCHEMA", "STATISTICS");
|
||||
|
||||
/* ALTER TRIGGER <name>, add ON */
|
||||
else if (Matches("ALTER", "TRIGGER", MatchAny))
|
||||
|
Loading…
Reference in New Issue
Block a user