mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix psql's tab completion for TABLE.
This should offer the same relation types that SELECT ... FROM would. You can't select from an index for instance, so offering it here is unhelpful. Noted while testing ilmari's recent patch.
This commit is contained in:
@ -3327,7 +3327,7 @@ psql_completion(const char *text, int start, int end)
|
||||
|
||||
/* TABLE, but not TABLE embedded in other commands */
|
||||
else if (Matches1("TABLE"))
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations, NULL);
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvmf, NULL);
|
||||
|
||||
/* TABLESAMPLE */
|
||||
else if (TailMatches1("TABLESAMPLE"))
|
||||
|
Reference in New Issue
Block a user