git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7c4dad)
Fix psql's tab completion for TABLE.
2018年9月20日 21:21:14 +0000 (17:21 -0400)
2018年9月20日 21:21:14 +0000 (17:21 -0400)
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.


diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 3d627c10a188565490a6ba7bd095e29e63dc0d57..47a1a19688fe5855b9de87111b26f822ea7d98a6 100644 (file)
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -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"))
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /