• Heikki Linnakangas's avatar
    Handle duplicate XIDs in txid_snapshot. · 8f9b9590
    Heikki Linnakangas authored
    The proc array can contain duplicate XIDs, when a transaction is just being
    prepared for two-phase commit. To cope, remove any duplicates in
    txid_current_snapshot(). Also ignore duplicates in the input functions, so
    that if e.g. you have an old pg_dump file that already contains duplicates,
    it will be accepted.
    
    Report and fix by Jan Wieck. Backpatch to all supported versions.
    8f9b9590
txid.out 6.69 KB