projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c41645
)
Add tab-completion for table name after JOIN.
author
Heikki Linnakangas
Thu, 3 Mar 2011 07:42:02 +0000
(09:42 +0200)
committer
Heikki Linnakangas
Thu, 3 Mar 2011 07:42:49 +0000
(09:42 +0200)
Andrey Popp
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index de34f25d257548f0e693c82ba64fcc18f96dbd02..2214471ceab10d864f1e5c4070a919cc63e0f495 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-2751,6
+2751,10
@@
psql_completion(char *text, int start, int end)
pg_strcasecmp(prev3_wd, "\\copy") != 0)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf, NULL);
+/* ... JOIN ... */
+ else if (pg_strcasecmp(prev_wd, "JOIN") == 0)
+ COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf, NULL);
+
/* Backslash commands */
/* TODO: \dc \dd \dl */
else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0)