diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-04-12 13:38:54 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-04-12 13:38:54 +0900 |
commit | a4b57543acfb52cc7c7e031501002563f536b929 (patch) | |
tree | a24d3a2c95880f547500a8bcdbe94d718d005eca /src/backend/replication/basebackup_gzip.c | |
parent | bd037dc928dd126e5623117b2fe7633ec3fa7c40 (diff) |
Rename backup_compression.{c,h} to compression.{c,h}
Compression option handling (level, algorithm or even workers) can be
used across several parts of the system and not only base backups.
Structures, objects and routines are renamed in consequence, to remove
the concept of base backups from this part of the code making this
change straight-forward.
pg_receivewal, that has gained support for LZ4 since babbbb5, will make
use of this infrastructure for its set of compression options, bringing
more consistency with pg_basebackup. This cleanup needs to be done
before releasing a beta of 15. pg_dump is a potential future target, as
well, and adding more compression options to it may happen in 16~.
Author: Michael Paquier
Reviewed-by: Robert Haas, Georgios Kokolatos
Discussion: https://postgr.es/m/YlPQGNAAa04raObK@paquier.xyz
Diffstat (limited to 'src/backend/replication/basebackup_gzip.c')
-rw-r--r-- | src/backend/replication/basebackup_gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/basebackup_gzip.c b/src/backend/replication/basebackup_gzip.c index 43a7323e7d2..5ae7451187b 100644 --- a/src/backend/replication/basebackup_gzip.c +++ b/src/backend/replication/basebackup_gzip.c @@ -59,7 +59,7 @@ const bbsink_ops bbsink_gzip_ops = { * Create a new basebackup sink that performs gzip compression. */ bbsink * -bbsink_gzip_new(bbsink *next, bc_specification *compress) +bbsink_gzip_new(bbsink *next, pg_compress_specification *compress) { #ifndef HAVE_LIBZ ereport(ERROR, @@ -72,7 +72,7 @@ bbsink_gzip_new(bbsink *next, bc_specification *compress) Assert(next != NULL); - if ((compress->options & BACKUP_COMPRESSION_OPTION_LEVEL) == 0) + if ((compress->options & PG_COMPRESSION_OPTION_LEVEL) == 0) compresslevel = Z_DEFAULT_COMPRESSION; else { |