aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-09-20 17:21:14 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-09-20 17:21:14 -0400
commitc9a8a401f169ec793b1a89b71b0340dd2cfe8bd7 (patch)
tree3579e59e40ca279077b5cdac2b8b8621f1a053a3 /src
parenta7c4dad1a770c1c4256aa87e01a85172e1549aad (diff)
downloadpostgresql-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.c2
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"))