Skip to content

Commit 2b8c94e

Browse files
committed
Improve tab-completion for ALTER INDEX RESET/SET.
Author: Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoDSGfB0G4egOy2UvBT=uihojuh-syxgSipj+XNkpWdVzQ@mail.gmail.com
1 parent 81b9b5c commit 2b8c94e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/bin/psql/tab-complete.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,11 +1711,17 @@ psql_completion(const char *text, int start, int end)
17111711
COMPLETE_WITH_CONST("(");
17121712
/* ALTER INDEX <foo> SET|RESET ( */
17131713
else if (Matches5("ALTER", "INDEX", MatchAny, "RESET", "("))
1714-
COMPLETE_WITH_LIST3("fillfactor", "fastupdate",
1715-
"gin_pending_list_limit");
1714+
COMPLETE_WITH_LIST6("fillfactor",
1715+
"fastupdate", "gin_pending_list_limit", /* GIN */
1716+
"buffering", /* GiST */
1717+
"pages_per_range", "autosummarize" /* BRIN */
1718+
);
17161719
else if (Matches5("ALTER", "INDEX", MatchAny, "SET", "("))
1717-
COMPLETE_WITH_LIST3("fillfactor =", "fastupdate =",
1718-
"gin_pending_list_limit =");
1720+
COMPLETE_WITH_LIST6("fillfactor =",
1721+
"fastupdate =", "gin_pending_list_limit =", /* GIN */
1722+
"buffering =", /* GiST */
1723+
"pages_per_range =", "autosummarize =" /* BRIN */
1724+
);
17191725

17201726
/* ALTER LANGUAGE <name> */
17211727
else if (Matches3("ALTER", "LANGUAGE", MatchAny))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy