pgsql: Prepare pg_dump internals for additional compression methods

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Prepare pg_dump internals for additional compression methods
Date: 2023-02-23 15:23:15
Message-ID: E1pVDRD-000Jn8-6T@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Prepare pg_dump internals for additional compression methods

Commit bf9aa490db introduced a compression API in compress_io.{c,h} to
make reuse easier, and allow adding more compression algorithms.
However, pg_backup_archiver.c was not switched to this API and continued
to call the compression directly.

This commit teaches pg_backup_archiver.c about the compression API, so
that it can benefit from bf9aa490db (simpler code, easier addition of
new compression methods).

Author: Georgios Kokolatos
Reviewed-by: Michael Paquier, Rachel Heaton, Justin Pryzby, Tomas Vondra
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss%3D%40protonmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/03d02f54a64089284582cc60d94a8af09ff4e081

Modified Files
--------------
src/bin/pg_dump/compress_io.c | 97 ++++++++++++++++++++----
src/bin/pg_dump/compress_io.h | 4 +
src/bin/pg_dump/pg_backup_archiver.c | 138 +++++++++++++----------------------
src/bin/pg_dump/pg_backup_archiver.h | 27 +------
4 files changed, 138 insertions(+), 128 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-02-23 16:06:04 pgsql: Fix mis-handling of outer join quals generated by EquivalenceCla
Previous Message Heikki Linnakangas 2023-02-23 13:40:38 pgsql: pg_rewind: Fix determining TLI when server was just promoted.