Add support for zstd base backup compression.
Robert Haas <rhaas@postgresql.org>
Add support for zstd base backup compression. Both client-side compression and server-side compression are now supported for zstd. In addition, a backup compressed by the server using zstd can now be decompressed by the client in order to accommodate the use of -Fp. Jeevan Ladhe, with some edits by me. Discussion: http://postgr.es/m/CA+Tgmobyzfbz=gyze2_LL1ZumZunmaEKbHQxjrFkOR7APZGu-g@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +4 −3 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +22 −19 |
| src/backend/replication/basebackup.c | modified | +6 −1 |
| src/backend/replication/basebackup_zstd.c | added | +299 −0 |
| src/backend/replication/Makefile | modified | +1 −0 |
| src/bin/pg_basebackup/bbstreamer.h | modified | +3 −0 |
| src/bin/pg_basebackup/bbstreamer_zstd.c | added | +338 −0 |
| src/bin/pg_basebackup/Makefile | modified | +1 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +46 −3 |
| src/bin/pg_basebackup/pg_receivewal.c | modified | +4 −0 |
| src/bin/pg_basebackup/walmethods.h | modified | +1 −0 |
| src/bin/pg_verifybackup/Makefile | modified | +1 −0 |
| src/bin/pg_verifybackup/t/008_untar.pl | modified | +9 −0 |
| src/bin/pg_verifybackup/t/009_extract.pl | modified | +5 −0 |
| src/bin/pg_verifybackup/t/010_client_untar.pl | modified | +8 −0 |
| src/include/replication/basebackup_sink.h | modified | +1 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +1 −0 |
Documentation touched
Discussion
- refactoring basebackup.c 233 messages · 2020-05-08 → 2023-04-12