Commit 2b8c94e1 authored by Fujii Masao's avatar Fujii Masao

Improve tab-completion for ALTER INDEX RESET/SET.

Author: Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoDSGfB0G4egOy2UvBT=uihojuh-syxgSipj+XNkpWdVzQ@mail.gmail.com
parent 81b9b5ce
...@@ -1711,11 +1711,17 @@ psql_completion(const char *text, int start, int end) ...@@ -1711,11 +1711,17 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH_CONST("("); COMPLETE_WITH_CONST("(");
/* ALTER INDEX <foo> SET|RESET ( */ /* ALTER INDEX <foo> SET|RESET ( */
else if (Matches5("ALTER", "INDEX", MatchAny, "RESET", "(")) else if (Matches5("ALTER", "INDEX", MatchAny, "RESET", "("))
COMPLETE_WITH_LIST3("fillfactor", "fastupdate", COMPLETE_WITH_LIST6("fillfactor",
"gin_pending_list_limit"); "fastupdate", "gin_pending_list_limit", /* GIN */
"buffering", /* GiST */
"pages_per_range", "autosummarize" /* BRIN */
);
else if (Matches5("ALTER", "INDEX", MatchAny, "SET", "(")) else if (Matches5("ALTER", "INDEX", MatchAny, "SET", "("))
COMPLETE_WITH_LIST3("fillfactor =", "fastupdate =", COMPLETE_WITH_LIST6("fillfactor =",
"gin_pending_list_limit ="); "fastupdate =", "gin_pending_list_limit =", /* GIN */
"buffering =", /* GiST */
"pages_per_range =", "autosummarize =" /* BRIN */
);
/* ALTER LANGUAGE <name> */ /* ALTER LANGUAGE <name> */
else if (Matches3("ALTER", "LANGUAGE", MatchAny)) else if (Matches3("ALTER", "LANGUAGE", MatchAny))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment