summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-11-28 08:14:41 +0000
committerPeter Eisentraut2024-11-28 08:14:41 +0000
commit25ec329afa175a3a27d0d49ef5214d9249421de5 (patch)
treedfe44e62c9624053f9f2f8c8c7f282b2374201fe
parent7f798aca1d5df290aafad41180baea0ae311b4ee (diff)
psql: Add tab completion for COPY (MERGE ...
The underlying feature for this was added in PostgreSQL 17. Author: Jian He <[email protected]> Discussion: https://www.postgresql.org/message-id/CACJufxEmNjxvf1deR1zBrJbjAMeCooooLRzZ+yaaBuqDKh_6-Q@mail.gmail.com
-rw-r--r--src/bin/psql/tab-complete.in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c
index fad2277991..bbd08770c3 100644
--- a/src/bin/psql/tab-complete.in.c
+++ b/src/bin/psql/tab-complete.in.c
@@ -3204,7 +3204,7 @@ match_previous_words(int pattern_id,
COMPLETE_WITH_SCHEMA_QUERY_PLUS(Query_for_list_of_tables, "(");
/* Complete COPY ( with legal query commands */
else if (Matches("COPY|\\copy", "("))
- COMPLETE_WITH("SELECT", "TABLE", "VALUES", "INSERT INTO", "UPDATE", "DELETE FROM", "WITH");
+ COMPLETE_WITH("SELECT", "TABLE", "VALUES", "INSERT INTO", "UPDATE", "DELETE FROM", "MERGE INTO", "WITH");
/* Complete COPY <sth> */
else if (Matches("COPY|\\copy", MatchAny))
COMPLETE_WITH("FROM", "TO");