• Andres Freund's avatar
    Fix hard to hit race condition in heapam's tuple locking code. · e7caacf7
    Andres Freund authored
    As mentioned in its commit message, eca0f1db left open a race condition,
    where a page could be marked all-visible, after the code checked
    PageIsAllVisible() to pin the VM, but before the page is locked.  Plug
    that hole.
    
    Reviewed-By: Robert Haas, Andres Freund
    Author: Amit Kapila
    Discussion: CAEepm=3fWAbWryVW9swHyLTY4sXVf0xbLvXqOwUoDiNCx9mBjQ@mail.gmail.com
    Backpatch: -
    e7caacf7
heapam.c 272 KB