git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 237795a) | patch
Move pg_lzcompress.c to src/common.
Mon, 9 Feb 2015 06:15:24 +0000 (15:15 +0900)
Mon, 9 Feb 2015 06:15:24 +0000 (15:15 +0900)
commit 40bede5477bb5bce98ce9548841cb414634c26f7
Move pg_lzcompress.c to src/common.

The meta data of PGLZ symbolized by PGLZ_Header is removed, to make
the compression and decompression code independent on the backend-only
varlena facility. PGLZ_Header is being used to store some meta data
related to the data being compressed like the raw length of the uncompressed
record or some varlena-related data, making it unpluggable once PGLZ is
stored in src/common as it contains some backend-only code paths with
the management of varlena structures. The APIs of PGLZ are reworked
at the same time to do only compression and decompression of buffers
without the meta-data layer, simplifying its use for a more general usage.

On-disk format is preserved as well, so there is no incompatibility with
previous major versions of PostgreSQL for TOAST entries.

Exposing compression and decompression APIs of pglz makes possible its
use by extensions and contrib modules. Especially 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, reviewed by me.
src/backend/access/heap/tuptoaster.c diff | blob | blame | history
src/backend/utils/adt/Makefile diff | blob | blame | history
src/common/Makefile diff | blob | blame | history
src/common/pg_lzcompress.c [moved from src/backend/utils/adt/pg_lzcompress.c with 92% similarity] diff | blob | blame | history
src/include/common/pg_lzcompress.h [moved from src/include/utils/pg_lzcompress.h with 77% similarity] diff | blob | blame | history
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /