aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-09-03 15:59:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-09-03 15:59:39 +0000
commit8fad2e3ff4d86e279366c9d0a398f1f2371493f3 (patch)
treece3dcb3333b752d927dac4207c573626bef5c9b8 /src/backend/access/gist/gistxlog.c
parentf79f57a0af619c071054c23763519b93e1f2f4fe (diff)
downloadpostgresql-8fad2e3ff4d86e279366c9d0a398f1f2371493f3.tar.gz
postgresql-8fad2e3ff4d86e279366c9d0a398f1f2371493f3.zip
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
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions