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

Appearance settings

Commit 3cf2f7a

Browse filesBrowse 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 "ALTER STATISTICS <name>" with SET. Author: Vignesh C Discussion: https://postgr.es/m/CALDaNm2HHF_371o+EeSjxDDS17Cx7d-ko2h1fLU94=ob=4_ktg@mail.gmail.com
1 parent 14a737b commit 3cf2f7a
Copy full SHA for 3cf2f7a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/bin/psql/tab-complete.c
+3Lines 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
else if (Matches("ALTER", "STATISTICS", MatchAny))
22182218
COMPLETE_WITH("OWNER TO", "RENAME TO", "SET SCHEMA", "SET STATISTICS");
2219+
/* ALTER STATISTICS <name> SET */
2220+
else if (Matches("ALTER", "STATISTICS", MatchAny, "SET"))
2221+
COMPLETE_WITH("SCHEMA", "STATISTICS");
22192222

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.