Improve tab-completion for ALTER INDEX RESET/SET.
Author: Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoDSGfB0G4egOy2UvBT=uihojuh-syxgSipj+XNkpWdVzQ@mail.gmail.com
This commit is contained in:
parent
81b9b5ce49
commit
2b8c94e1b4
|
@ -1711,11 +1711,17 @@ psql_completion(const char *text, int start, int end)
|
|||
COMPLETE_WITH_CONST("(");
|
||||
/* ALTER INDEX <foo> SET|RESET ( */
|
||||
else if (Matches5("ALTER", "INDEX", MatchAny, "RESET", "("))
|
||||
COMPLETE_WITH_LIST3("fillfactor", "fastupdate",
|
||||
"gin_pending_list_limit");
|
||||
COMPLETE_WITH_LIST6("fillfactor",
|
||||
"fastupdate", "gin_pending_list_limit", /* GIN */
|
||||
"buffering", /* GiST */
|
||||
"pages_per_range", "autosummarize" /* BRIN */
|
||||
);
|
||||
else if (Matches5("ALTER", "INDEX", MatchAny, "SET", "("))
|
||||
COMPLETE_WITH_LIST3("fillfactor =", "fastupdate =",
|
||||
"gin_pending_list_limit =");
|
||||
COMPLETE_WITH_LIST6("fillfactor =",
|
||||
"fastupdate =", "gin_pending_list_limit =", /* GIN */
|
||||
"buffering =", /* GiST */
|
||||
"pages_per_range =", "autosummarize =" /* BRIN */
|
||||
);
|
||||
|
||||
/* ALTER LANGUAGE <name> */
|
||||
else if (Matches3("ALTER", "LANGUAGE", MatchAny))
|
||||
|
|
Loading…
Reference in New Issue