Skip to content

Commit 8e2d8b1

Browse files
committed
Add tab-completion for table name after JOIN.
Andrey Popp
1 parent 8c41645 commit 8e2d8b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/psql/tab-complete.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,10 @@ psql_completion(char *text, int start, int end)
27512751
pg_strcasecmp(prev3_wd, "\\copy") != 0)
27522752
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf, NULL);
27532753

2754+
/* ... JOIN ... */
2755+
else if (pg_strcasecmp(prev_wd, "JOIN") == 0)
2756+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf, NULL);
2757+
27542758
/* Backslash commands */
27552759
/* TODO: \dc \dd \dl */
27562760
else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0)

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