]> 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:46:43 +0000 (14:46 +0300)
commitbe7830596f333b70243661b70e09a783ed57b497
tree14309b2c5d7cf401fb538de4661550b9ad09b361
parent664ac3de7f50e3a16b9c96fa73c4f6e733500ade
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