Skip to content
Snippets Groups Projects
  • Heikki Linnakangas's avatar
    7ca32e25
    Fix hot standby bug with GiST scans. · 7ca32e25
    Heikki Linnakangas authored
    Don't reset the rightlink of a page when replaying a page update record.
    This was a leftover from pre-hot standby days, when it was not possible to
    have scans concurrent with WAL replay. Resetting the right-link was not
    necessary back then either, but it was done for the sake of tidiness. But
    with hot standby, it's wrong, because a concurrent scan might still need it.
    
    Backpatch all versions with hot standby, 9.0 and above.
    7ca32e25
    History
    Fix hot standby bug with GiST scans.
    Heikki Linnakangas authored
    Don't reset the rightlink of a page when replaying a page update record.
    This was a leftover from pre-hot standby days, when it was not possible to
    have scans concurrent with WAL replay. Resetting the right-link was not
    necessary back then either, but it was done for the sake of tidiness. But
    with hot standby, it's wrong, because a concurrent scan might still need it.
    
    Backpatch all versions with hot standby, 9.0 and above.