Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4cbe579

Browse files
committed
Add psql tab compression for SET COMPRESSION with ALTER TABLE
Author: Aleksander AlekseevReviewed-by: Shinya KatoDiscussion:https://postgr.es/m/CAJ7c6TMuT+=P7uDepjVpdqSEp2xOmXET3Y2K-xWAO=sCz-28gg@mail.gmail.com
1 parent829906f commit4cbe579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,10 @@ psql_completion(const char *text, int start, int end)
23852385
elseif (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+
elseif (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
elseif (Matches("ALTER","TABLE",MatchAny,"ALTER","COLUMN",MatchAny,"SET","STORAGE")||
23902394
Matches("ALTER","TABLE",MatchAny,"ALTER",MatchAny,"SET","STORAGE"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp