Skip to content

Commit 5b2266e

Browse files
committed
Improve tab completion of IMPORT FOREIGN SCHEMA with \h in psql
Only "IMPORT" was showing as result of the completion, while IMPORT FOREIGN SCHEMA is the only command using this keyword in first position. This changes the completion to show the full command name instead of just "IMPORT". Reviewed-by: Georgios Kokolatos, Julien Rouhaud Discussion: https://postgr.es/m/YFL6JneBiuMWYyoh@paquier.xyz
1 parent 1d581ce commit 5b2266e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ psql_completion(const char *text, int start, int end)
14941494
"ABORT", "ALTER", "ANALYZE", "BEGIN", "CALL", "CHECKPOINT", "CLOSE", "CLUSTER",
14951495
"COMMENT", "COMMIT", "COPY", "CREATE", "DEALLOCATE", "DECLARE",
14961496
"DELETE FROM", "DISCARD", "DO", "DROP", "END", "EXECUTE", "EXPLAIN",
1497-
"FETCH", "GRANT", "IMPORT", "INSERT", "LISTEN", "LOAD", "LOCK",
1497+
"FETCH", "GRANT", "IMPORT FOREIGN SCHEMA", "INSERT", "LISTEN", "LOAD", "LOCK",
14981498
"MOVE", "NOTIFY", "PREPARE",
14991499
"REASSIGN", "REFRESH MATERIALIZED VIEW", "REINDEX", "RELEASE",
15001500
"RESET", "REVOKE", "ROLLBACK",

0 commit comments

Comments
 (0)