• Tom Lane's avatar
    Arrange for GetSnapshotData to copy live-subtransaction XIDs from the · 8fad2e3f
    Tom Lane authored
    PGPROC array into snapshots, and use this information to avoid visits
    to pg_subtrans in HeapTupleSatisfiesSnapshot.  This appears to solve
    the pg_subtrans-related context swap storm problem that's been reported
    by several people for 8.1.  While at it, modify GetSnapshotData to not
    take an exclusive lock on ProcArrayLock, as closer analysis shows that
    shared lock is always sufficient.
    Itagaki Takahiro and Tom Lane
    8fad2e3f
tqual.c 39.1 KB