mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 16:21:20 +03:00
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
This commit is contained in:
parent
8f11ef80c5
commit
1e1f70c34a
@ -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") ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user