diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-09-20 17:21:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-09-20 17:21:14 -0400 |
commit | c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7 (patch) | |
tree | 3579e59e40ca279077b5cdac2b8b8621f1a053a3 /src | |
parent | a7c4dad1a770c1c4256aa87e01a85172e1549aad (diff) | |
download | postgresql-c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7.tar.gz postgresql-c9a8a401f169ec793b1a89b71b0340dd2cfe8bd7.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 3d627c10a18..47a1a19688f 100644 --- 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")) |