]> granicus.if.org Git - postgresql/commit
Move pg_lzcompress.c to src/common.
authorFujii Masao <fujii@postgresql.org>
Thu, 25 Dec 2014 11:46:14 +0000 (20:46 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 25 Dec 2014 11:46:14 +0000 (20:46 +0900)
commit60838df922345b26a616e49ac9fab808a35d1f85
tree9f924e2b9558b80cd523305aa76d697b35da6fb7
parent5b89473d870dc2a9fec0926c5afccf53042dbb0a
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
src/backend/access/heap/tuptoaster.c
src/backend/utils/adt/Makefile
src/common/Makefile
src/common/pg_lzcompress.c [moved from src/backend/utils/adt/pg_lzcompress.c with 97% similarity]
src/include/common/pg_lzcompress.h [moved from src/include/utils/pg_lzcompress.h with 96% similarity]
src/tools/msvc/Mkvcbuild.pm