-
- Downloads
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.
Showing
- src/backend/access/gist/gist.c 6 additions, 7 deletionssrc/backend/access/gist/gist.c
- src/backend/access/gist/gistget.c 1 addition, 1 deletionsrc/backend/access/gist/gistget.c
- src/backend/access/gist/gistvacuum.c 1 addition, 1 deletionsrc/backend/access/gist/gistvacuum.c
- src/backend/access/gist/gistxlog.c 3 additions, 3 deletionssrc/backend/access/gist/gistxlog.c
- src/include/access/gist.h 9 additions, 1 deletionsrc/include/access/gist.h
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/storage/bufpage.h 19 additions, 11 deletionssrc/include/storage/bufpage.h
Loading
Please register or sign in to comment