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

Commit51891d5

Browse files
committed
pg_basebackup: Cleaner handling when compression is multiply specified.
Tushar Ahuja discovered that if you use both --compress and --gzip,or --compress multiple times, the last instance of one of theseoptions doesn't in all cases overwrite the compression level set byan earlier option. That's not a serious bug, but it also has nothingto recommend it. Repair.Discussion:http://postgr.es/m/CA+TgmoZfP=rsZB_9vDGfhuNgSu_M_09UWu8SjvsP65y_1pQFCg@mail.gmail.com
1 parentda505ea commit51891d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,12 @@ parse_compress_options(char *src, WalCompressionMethod *methodres,
966966
intfirstlen;
967967
char*firstpart;
968968

969+
/*
970+
* clear 'levelres' so that if there are multiple compression options,
971+
* the last one fully overrides the earlier ones
972+
*/
973+
*levelres=0;
974+
969975
/* check if the option is split in two */
970976
sep=strchr(src,':');
971977

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp