• Heikki Linnakangas's avatar
    Fix full-page writes of internal GIN pages. · 22122c83
    Heikki Linnakangas authored
    Insertion to a non-leaf GIN page didn't make a full-page image of the page,
    which is wrong. The code used to do it correctly, but was changed (commit
    853d1c31) because the redo-routine didn't
    track incomplete splits correctly when the page was restored from a full
    page image. Of course, that was not right way to fix it, the redo routine
    should've been fixed instead. The redo-routine was surreptitiously fixed
    in 2010 (commit 4016bdef), so all we need
    to do now is revert the code that creates the record to its original form.
    
    This doesn't change the format of the WAL record.
    
    Backpatch to all supported versions.
    22122c83
ginentrypage.c 18.4 KB