• Heikki Linnakangas's avatar
    Protect against torn pages when deleting GIN list pages. · 4f7bb4b2
    Heikki Linnakangas authored
    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.
    4f7bb4b2
ginxlog.c 25.2 KB