pgsql: Make GiST indexes on-disk compatible with 9.2 again. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Make GiST indexes on-disk compatible with 9.2 again.
Date
Msg-id E1Tvqp9-0003yz-N5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9ee4d06f3fdde37b063b8a0f0fa0a2113ac12303

Modified Files
--------------
src/backend/access/gist/gist.c       |   13 ++++++-------
src/backend/access/gist/gistget.c    |    2 +-
src/backend/access/gist/gistvacuum.c |    2 +-
src/backend/access/gist/gistxlog.c   |    6 +++---
src/include/access/gist.h            |   10 +++++++++-
src/include/catalog/catversion.h     |    2 +-
src/include/storage/bufpage.h        |   30 +++++++++++++++++++-----------
7 files changed, 40 insertions(+), 25 deletions(-)


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Base the default SSL ciphers on DEFAULT instead of ALL
Next
From: Magnus Hagander
Date:
Subject: pgsql: Silence compiler warnings