Add tab-completion for table name after JOIN.

Andrey Popp
This commit is contained in:
Heikki Linnakangas 2011-03-03 09:42:02 +02:00
parent 8c4164540b
commit 8e2d8b1497
1 changed files with 4 additions and 0 deletions

View File

@ -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)