Arrange for GetSnapshotData to copy live-subtransaction XIDs from the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8fad2e3ff4d86e279366c9d0a398f1f2371493f3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-09-03T15:59:39Z
Releases: 8.2.0
Arrange for GetSnapshotData to copy live-subtransaction XIDs from the
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

Files