From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Rename backup_compression.{c,h} to compression.{c,h} |
Date: | 2022-04-12 04:39:23 |
Message-ID: | E1ne8JH-0007gv-F8@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a4b57543acfb52cc7c7e031501002563f536b929
Modified Files
--------------
src/backend/replication/basebackup.c | 24 ++++----
src/backend/replication/basebackup_gzip.c | 4 +-
src/backend/replication/basebackup_lz4.c | 4 +-
src/backend/replication/basebackup_zstd.c | 10 ++--
src/bin/pg_basebackup/bbstreamer.h | 8 +--
src/bin/pg_basebackup/bbstreamer_gzip.c | 4 +-
src/bin/pg_basebackup/bbstreamer_lz4.c | 4 +-
src/bin/pg_basebackup/bbstreamer_zstd.c | 6 +-
src/bin/pg_basebackup/nls.mk | 2 +-
src/bin/pg_basebackup/pg_basebackup.c | 44 +++++++--------
src/common/Makefile | 2 +-
src/common/{backup_compression.c => compression.c} | 66 +++++++++++-----------
src/include/common/backup_compression.h | 46 ---------------
src/include/common/compression.h | 46 +++++++++++++++
src/include/replication/basebackup_sink.h | 8 +--
src/tools/msvc/Mkvcbuild.pm | 2 +-
src/tools/pgindent/typedefs.list | 2 +
17 files changed, 142 insertions(+), 140 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2022-04-12 07:48:11 | pgsql: Change mechanism to set up source targetlist in MERGE |
Previous Message | Michael Paquier | 2022-04-12 03:49:48 | Re: pgsql: Add TAP test for archive_cleanup_command and recovery_end_comman |