]> granicus.if.org Git - postgresql/commit
Protect against torn pages when deleting GIN list pages.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 8 May 2014 11:43:04 +0000 (14:43 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 8 May 2014 11:43:39 +0000 (14:43 +0300)
commit31633f992568ffca9a7927a9f474ad8516840b2c
tree1d4d658a3e079bf59abc606ec9707c509ff57b55
parent7603744a077a8f6a878f47e389a3d41844c8adc5
Protect against torn pages when deleting GIN list pages.

To-be-deleted list pages contain no useful information, as they are being
deleted, but we must still protect the writes from being torn by a crash
after a partial write. To do that, re-initialize the pages on WAL replay.

Jeff Janes caught this with a test program to test partial writes.
Backpatch to all supported versions.
src/backend/access/gin/ginxlog.c