From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | psql tab completion for \h with IMPORT FOREIGN SCHEMA |
Date: | 2021-03-18 06:58:46 |
Message-ID: | YFL6JneBiuMWYyoh@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi all,
Well, as $subject tells, I just found confusing that \h does not
complete the so-said command, the only one using IMPORT as keyword,
so I'd like to do the following:
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -1493,7 +1493,7 @@ psql_completion(const char *text, int start, int end)
"ABORT", "ALTER", "ANALYZE", "BEGIN", "CALL", "CHECKPOINT", "CLOSE", "CLUSTER",
"COMMENT", "COMMIT", "COPY", "CREATE", "DEALLOCATE", "DECLARE",
"DELETE FROM", "DISCARD", "DO", "DROP", "END", "EXECUTE", "EXPLAIN",
- "FETCH", "GRANT", "IMPORT", "INSERT", "LISTEN", "LOAD", "LOCK",
+ "FETCH", "GRANT", "IMPORT FOREIGN SCHEMA", "INSERT", "LISTEN", "LOAD", "LOCK",
"MOVE", "NOTIFY", "PREPARE",
"REASSIGN", "REFRESH MATERIALIZED VIEW", "REINDEX", "RELEASE",
"RESET", "REVOKE", "ROLLBACK",
That's not the patch of the year.
Thanks,
--
Michael
Attachment | Content-Type | Size |
---|---|---|
psql-completion.patch | text/x-diff | 754 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Julien Rouhaud | 2021-03-18 07:13:17 | Re: psql tab completion for \h with IMPORT FOREIGN SCHEMA |
Previous Message | Fujii Masao | 2021-03-18 06:46:11 | Re: fdatasync performance problem with large number of DB files |