• Robert Haas's avatar
    Fix crash bug in RestoreSnapshot. · 4f9f4958
    Robert Haas authored
    If serialized_snapshot->subxcnt > 0 and serialized_snapshot->xcnt == 0,
    the old coding would do the wrong thing and crash.  This can happen
    on standby servers.
    
    Report by Andreas Seltenreich.  Patch by Thomas Munro, reviewed by
    Amit Kapila and tested by Andreas Seltenreich.
    4f9f4958
snapmgr.c 60.9 KB