Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b8c94e

Browse files
committed
Improve tab-completion for ALTER INDEX RESET/SET.
Author: Masahiko SawadaDiscussion:https://postgr.es/m/CAD21AoDSGfB0G4egOy2UvBT=uihojuh-syxgSipj+XNkpWdVzQ@mail.gmail.com
1 parent81b9b5c commit2b8c94e

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
elseif (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
elseif (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
elseif (Matches3("ALTER","LANGUAGE",MatchAny))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp