Skip to content

Commit 70d85d1

Browse files
committed
add compression configuration to backup.control
1 parent 5adeae5 commit 70d85d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

catalog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ pgBackupWriteControl(FILE *out, pgBackup *backup)
386386
fprintf(out, "#Configuration\n");
387387
fprintf(out, "backup-mode = %s\n", pgBackupGetBackupMode(backup));
388388
fprintf(out, "stream = %s\n", backup->stream?"true":"false");
389+
fprintf(out, "compress_alg = %s\n", deparse_compress_alg(compress_alg));
390+
fprintf(out, "compress_level = %d\n", compress_level);
391+
fprintf(out, "from_replica = %s\n", from_replica?"true":"false");
389392

390393
fprintf(out, "\n#Compatibility\n");
391394
fprintf(out, "block-size = %u\n", backup->block_size);

0 commit comments

Comments
 (0)