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

Commit385798e

Browse files
committed
add --compress shortcut option
1 parent03dfb7b commit385798e

File tree

3 files changed

+6
-184
lines changed

3 files changed

+6
-184
lines changed

‎README.md‎

Lines changed: 0 additions & 184 deletions
This file was deleted.

‎src/pg_probackup.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ uint32retention_window = 0;
7272
/* compression options */
7373
CompressAlgcompress_alg=NOT_DEFINED_COMPRESS;
7474
intcompress_level=DEFAULT_COMPRESS_LEVEL;
75+
boolcompress_shortcut= false;
7576

7677
/* other options */
7778
char*instance_name;
@@ -132,6 +133,7 @@ static pgut_option options[] =
132133
/* compression options */
133134
{'f',36,"compress-algorithm",opt_compress_alg,SOURCE_CMDLINE },
134135
{'u',37,"compress-level",&compress_level,SOURCE_CMDLINE },
136+
{'b',38,"compress",&compress_shortcut,SOURCE_CMDLINE },
135137
/* logging options */
136138
{'f',40,"log-level",opt_log_level,SOURCE_CMDLINE },
137139
{'s',41,"log-filename",&log_filename,SOURCE_CMDLINE },
@@ -353,6 +355,9 @@ main(int argc, char *argv[])
353355
if (num_threads<1)
354356
num_threads=1;
355357

358+
if (compress_shortcut)
359+
compress_alg=ZLIB_COMPRESS;
360+
356361
if (backup_subcmd!=SET_CONFIG)
357362
{
358363
if (compress_level!=DEFAULT_COMPRESS_LEVEL

‎src/pg_probackup.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ extern uint32 retention_window;
294294
/* compression options */
295295
externCompressAlgcompress_alg;
296296
externintcompress_level;
297+
externboolcompress_shortcut;
297298

298299
#defineDEFAULT_COMPRESS_LEVEL 6
299300

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp