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

Commit3cf2f7a

Browse files
committed
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 "ALTERSTATISTICS <name>" with SET.Author: Vignesh CDiscussion:https://postgr.es/m/CALDaNm2HHF_371o+EeSjxDDS17Cx7d-ko2h1fLU94=ob=4_ktg@mail.gmail.com
1 parent14a737b commit3cf2f7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,9 @@ psql_completion(const char *text, int start, int end)
22162216
/* ALTER STATISTICS <name> */
22172217
elseif (Matches("ALTER","STATISTICS",MatchAny))
22182218
COMPLETE_WITH("OWNER TO","RENAME TO","SET SCHEMA","SET STATISTICS");
2219+
/* ALTER STATISTICS <name> SET */
2220+
elseif (Matches("ALTER","STATISTICS",MatchAny,"SET"))
2221+
COMPLETE_WITH("SCHEMA","STATISTICS");
22192222

22202223
/* ALTER TRIGGER <name>, add ON */
22212224
elseif (Matches("ALTER","TRIGGER",MatchAny))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp