pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add LZ4 compression to pg_dump
Date: Thu, 23 Feb 2023 20:21:39 +0000
Message-ID: <E1pVI5z-000MHR-Ch@gemulon.postgresql.org> (raw)

Add LZ4 compression to pg_dump

Expand pg_dump's compression streaming and file APIs to support the lz4
algorithm. The newly added compress_lz4.{c,h} files cover all the
functionality of the aforementioned APIs. Minor changes were necessary
in various pg_backup_* files, where code for the 'lz4' file suffix has
been added, as well as pg_dump's compression option parsing.

Author: Georgios Kokolatos
Reviewed-by: Michael Paquier, Rachel Heaton, Justin Pryzby, Shi Yu, Tomas Vondra
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0da243fed0875932f781aff08df782b56af58d02

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml         |  13 +-
src/bin/pg_dump/Makefile              |   2 +
src/bin/pg_dump/compress_io.c         |  26 +-
src/bin/pg_dump/compress_lz4.c        | 626 ++++++++++++++++++++++++++++++++++
src/bin/pg_dump/compress_lz4.h        |  24 ++
src/bin/pg_dump/meson.build           |   8 +-
src/bin/pg_dump/pg_backup_archiver.c  |   6 +-
src/bin/pg_dump/pg_backup_directory.c |   9 +-
src/bin/pg_dump/pg_dump.c             |   5 +-
src/bin/pg_dump/t/002_pg_dump.pl      |  82 ++++-
src/tools/pginclude/cpluspluscheck    |   1 +
src/tools/pgindent/typedefs.list      |   2 +
12 files changed, 782 insertions(+), 22 deletions(-)



Message-ID: <E1pVI5z-000MHR-Ch@gemulon.postgresql.org>
Permalink:  ../E1pVI5z-000MHR-Ch@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pVI5z-000MHR-Ch@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add LZ4 compression to pg_dump
  In-Reply-To: <E1pVI5z-000MHR-Ch@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox