aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2024-12-16 16:38:35 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2024-12-16 17:30:04 +0100
commit1e1f70c34a8e8cef8d7f55ecb73ef22771c2e21b (patch)
tree0008ea74998011ccc2673a3cdefa5941c94f59e0
parent8f11ef80c5458f0d12eefa1c6fbba81af8bb3042 (diff)
downloadpostgresql-1e1f70c34a8e8cef8d7f55ecb73ef22771c2e21b.tar.gz
postgresql-1e1f70c34a8e8cef8d7f55ecb73ef22771c2e21b.zip
psql: Tab completion for CREATE TEMP TABLE ... USING
The USING keyword was offered only for persistent tables, not for temporary ones. So improve that. Author: Kirill Reshke Reviewed-By: Karina Litskevich Discussion: https://postgr.es/m/CALdSSPhVELkvutquqrDB=Ujfq_Pjz=6jn-kzh+291KPNViLTfw@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 79b02047174..d1cd7c54f6e 100644
--- a/src/bin/psql/tab-complete.in.c
+++ b/src/bin/psql/tab-complete.in.c
@@ -3629,7 +3629,7 @@ match_previous_words(int pattern_id,
TailMatches("CREATE", "UNLOGGED", "TABLE", MatchAny, "(*)"))
COMPLETE_WITH("AS", "INHERITS (", "PARTITION BY", "USING", "TABLESPACE", "WITH (");
else if (TailMatches("CREATE", "TEMP|TEMPORARY", "TABLE", MatchAny, "(*)"))
- COMPLETE_WITH("AS", "INHERITS (", "ON COMMIT", "PARTITION BY",
+ COMPLETE_WITH("AS", "INHERITS (", "ON COMMIT", "PARTITION BY", "USING",
"TABLESPACE", "WITH (");
/* Complete CREATE TABLE (...) USING with table access methods */
else if (TailMatches("CREATE", "TABLE", MatchAny, "(*)", "USING") ||