Skip to content

Commit b9c3de6

Browse files
committed
Tab completion: offer parens as appropriate in CREATE/ALTER TEXT SEARCH.
Jeff Janes, Georgios Kokolatos Discussion: https://postgr.es/m/CAMkU=1wU=vgxnvwy2HswLUVvoawrkrjZYeKXMr3w3p=_NNbGhQ@mail.gmail.com
1 parent ea7dace commit b9c3de6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ psql_completion(const char *text, int start, int end)
21402140
else if (Matches("ALTER", "TEXT", "SEARCH", "TEMPLATE|PARSER", MatchAny))
21412141
COMPLETE_WITH("RENAME TO", "SET SCHEMA");
21422142
else if (Matches("ALTER", "TEXT", "SEARCH", "DICTIONARY", MatchAny))
2143-
COMPLETE_WITH("OWNER TO", "RENAME TO", "SET SCHEMA");
2143+
COMPLETE_WITH("(", "OWNER TO", "RENAME TO", "SET SCHEMA");
21442144
else if (Matches("ALTER", "TEXT", "SEARCH", "CONFIGURATION", MatchAny))
21452145
COMPLETE_WITH("ADD MAPPING FOR", "ALTER MAPPING",
21462146
"DROP MAPPING FOR",
@@ -2635,7 +2635,7 @@ psql_completion(const char *text, int start, int end)
26352635
/* CREATE TEXT SEARCH */
26362636
else if (Matches("CREATE", "TEXT", "SEARCH"))
26372637
COMPLETE_WITH("CONFIGURATION", "DICTIONARY", "PARSER", "TEMPLATE");
2638-
else if (Matches("CREATE", "TEXT", "SEARCH", "CONFIGURATION", MatchAny))
2638+
else if (Matches("CREATE", "TEXT", "SEARCH", "CONFIGURATION|DICTIONARY|PARSER|TEMPLATE", MatchAny))
26392639
COMPLETE_WITH("(");
26402640

26412641
/* CREATE SUBSCRIPTION */

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