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

Commit 4cbe579

Browse files
committed
Add psql tab compression for SET COMPRESSION with ALTER TABLE
Author: Aleksander Alekseev Reviewed-by: Shinya Kato Discussion: https://postgr.es/m/CAJ7c6TMuT+=P7uDepjVpdqSEp2xOmXET3Y2K-xWAO=sCz-28gg@mail.gmail.com
1 parent 829906f commit 4cbe579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/psql/tab-complete.c

+4
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,10 @@ psql_completion(const char *text, int start, int end)
23852385
else if (Matches("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "SET", "(") ||
23862386
Matches("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "SET", "("))
23872387
COMPLETE_WITH("n_distinct", "n_distinct_inherited");
2388+
/* ALTER TABLE ALTER [COLUMN] <foo> SET COMPRESSION */
2389+
else if (Matches("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "SET", "COMPRESSION") ||
2390+
Matches("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "SET", "COMPRESSION"))
2391+
COMPLETE_WITH("DEFAULT", "PGLZ", "LZ4");
23882392
/* ALTER TABLE ALTER [COLUMN] <foo> SET STORAGE */
23892393
else if (Matches("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "SET", "STORAGE") ||
23902394
Matches("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "SET", "STORAGE"))

0 commit comments

Comments
 (0)