From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Move pg_lzcompress.c to src/common.
Date: Thu, 25 Dec 2014 11:47:34 +0000
Message-ID: <E1Y46tC-0000qW-Qt@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Move pg_lzcompress.c to src/common.
Exposing compression and decompression APIs of pglz makes possible its
use by extensions and contrib modules. pglz_decompress contained a call
to elog to emit an error message in case of corrupted data. This function
is changed to return a status code to let its callers return an error instead.
This commit is required for upcoming WAL compression feature so that
the WAL reader facility can decompress the WAL data by using pglz_decompress.
Michael Paquier
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/60838df922345b26a616e49ac9fab808a35d1f85
Modified Files
--------------
src/backend/access/heap/tuptoaster.c | 11 +-
src/backend/utils/adt/Makefile | 4 +-
src/backend/utils/adt/pg_lzcompress.c | 779 --------------------------------
src/common/Makefile | 3 +-
src/common/pg_lzcompress.c | 786 +++++++++++++++++++++++++++++++++
src/include/common/pg_lzcompress.h | 112 +++++
src/include/utils/pg_lzcompress.h | 112 -----
src/tools/msvc/Mkvcbuild.pm | 3 +-
8 files changed, 911 insertions(+), 899 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org
Subject: Re: pgsql: Move pg_lzcompress.c to src/common.
In-Reply-To: <E1Y46tC-0000qW-Qt@gemulon.postgresql.org>
References: <E1Y46tC-0000qW-Qt@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