aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-03-31 23:01:34 -0400
committerBruce Momjian <bruce@momjian.us>2020-03-31 23:01:34 -0400
commit08481eedd186ea5c22eef86e85cacacbc715f995 (patch)
treed7ace28b006d8742c27ff17e38c0c2f70f2b5f61
parenta7e8ece41cf7a96d8a9c4c037cdfef304d950831 (diff)
downloadpostgresql-08481eedd186ea5c22eef86e85cacacbc715f995.tar.gz
postgresql-08481eedd186ea5c22eef86e85cacacbc715f995.zip
psql: do file completion for \gx
This was missed when the feature was added. Reported-by: Vik Fearing Discussion: https://postgr.es/m/eca20529-0b06-b493-ee38-f071a75dcd5b@postgresfriends.org Backpatch-through: 10
-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 ca8f0d75a62..5fec59723cf 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3886,7 +3886,7 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
else if (TailMatchesCS("\\sv*"))
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
- else if (TailMatchesCS("\\cd|\\e|\\edit|\\g|\\i|\\include|"
+ else if (TailMatchesCS("\\cd|\\e|\\edit|\\g|\\gx|\\i|\\include|"
"\\ir|\\include_relative|\\o|\\out|"
"\\s|\\w|\\write|\\lo_import"))
{