aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-03-31 23:01:33 -0400
committerBruce Momjian <bruce@momjian.us>2020-03-31 23:01:33 -0400
commit7054e12e0fb64d7c1573a0b55c01b23b6d5e15eb (patch)
tree9aaeb10a7aa8f46631f781df7de3c2c7fc6ad902 /src
parentfd802bd92420adf32e872c16b75a7180bde876c7 (diff)
downloadpostgresql-7054e12e0fb64d7c1573a0b55c01b23b6d5e15eb.tar.gz
postgresql-7054e12e0fb64d7c1573a0b55c01b23b6d5e15eb.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
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 1d63d814113..7041248bbb2 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3880,7 +3880,7 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
else if (TailMatchesCS1("\\sv*"))
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
- else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\i|\\include|"
+ else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\gx|\\i|\\include|"
"\\ir|\\include_relative|\\o|\\out|"
"\\s|\\w|\\write|\\lo_import"))
{