mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	Add tab-completion for table name after JOIN.
Andrey Popp
This commit is contained in:
		| @@ -2751,6 +2751,10 @@ psql_completion(char *text, int start, int end) | |||||||
| 			 pg_strcasecmp(prev3_wd, "\\copy") != 0) | 			 pg_strcasecmp(prev3_wd, "\\copy") != 0) | ||||||
| 		COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf, NULL); | 		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 */ | /* Backslash commands */ | ||||||
| /* TODO:  \dc \dd \dl */ | /* TODO:  \dc \dd \dl */ | ||||||
| 	else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0) | 	else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user