Make GiST indexes on-disk compatible with 9.2 again.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 17 Jan 2013 14:35:46 +0000 (16:35 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 17 Jan 2013 14:46:16 +0000 (16:46 +0200)
commit9ee4d06f3fdde37b063b8a0f0fa0a2113ac12303
tree692e6a1de1a5a48872958ab8554a57889be2c6ba
parentbba486f372ffa28d6a0b70a6b0ad7065429213d0
Make GiST indexes on-disk compatible with 9.2 again.

The patch that turned XLogRecPtr into a uint64 inadvertently changed the
on-disk format of GiST indexes, because the NSN field in the GiST page
opaque is an XLogRecPtr. That breaks pg_upgrade. Revert the format of that
field back to the two-field struct that XLogRecPtr was before. This is the
same we did to LSNs in the page header to avoid changing on-disk format.

Bump catversion, as this invalidates any existing GiST indexes built on
9.3devel.
src/backend/access/gist/gist.c
src/backend/access/gist/gistget.c
src/backend/access/gist/gistvacuum.c
src/backend/access/gist/gistxlog.c
src/include/access/gist.h
src/include/catalog/catversion.h
src/include/storage/bufpage.h