postgresql/src/backend/access/rmgrdesc
Heikki Linnakangas 36a35c550a Compress GIN posting lists, for smaller index size.
GIN posting lists are now encoded using varbyte-encoding, which allows them
to fit in much smaller space than the straight ItemPointer array format used
before. The new encoding is used for both the lists stored in-line in entry
tree items, and in posting tree leaf pages.

To maintain backwards-compatibility and keep pg_upgrade working, the code
can still read old-style pages and tuples. Posting tree leaf pages in the
new format are flagged with GIN_COMPRESSED flag, to distinguish old and new
format pages. Likewise, entry tree tuples in the new format have a
GIN_ITUP_COMPRESSED flag set in a bit that was previously unused.

This patch bumps GIN_CURRENT_VERSION from 1 to 2. New indexes created with
version 9.4 will therefore have version number 2 in the metapage, while old
pg_upgraded indexes will have version 1. The code treats them the same, but
it might be come handy in the future, if we want to drop support for the
uncompressed format.

Alexander Korotkov and me. Reviewed by Tomas Vondra and Amit Langote.
2014-01-22 19:20:58 +02:00
..
Makefile Split out rmgr rm_desc functions into their own files 2012-11-28 13:01:15 -03:00
clogdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dbasedesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
gindesc.c Compress GIN posting lists, for smaller index size. 2014-01-22 19:20:58 +02:00
gistdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
hashdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
heapdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
mxactdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
nbtdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
relmapdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
seqdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
smgrdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
spgdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
standbydesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tblspcdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
xactdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
xlogdesc.c Update copyright for 2014 2014-01-07 16:05:30 -05:00