Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1e1f70c

Browse files
committed
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
1 parent 8f11ef8 commit 1e1f70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.in.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ match_previous_words(int pattern_id,
36293629
TailMatches("CREATE", "UNLOGGED", "TABLE", MatchAny, "(*)"))
36303630
COMPLETE_WITH("AS", "INHERITS (", "PARTITION BY", "USING", "TABLESPACE", "WITH (");
36313631
else if (TailMatches("CREATE", "TEMP|TEMPORARY", "TABLE", MatchAny, "(*)"))
3632-
COMPLETE_WITH("AS", "INHERITS (", "ON COMMIT", "PARTITION BY",
3632+
COMPLETE_WITH("AS", "INHERITS (", "ON COMMIT", "PARTITION BY", "USING",
36333633
"TABLESPACE", "WITH (");
36343634
/* Complete CREATE TABLE (...) USING with table access methods */
36353635
else if (TailMatches("CREATE", "TABLE", MatchAny, "(*)", "USING") ||

0 commit comments

Comments
 (0)