aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-03-31 05:18:47 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-03-31 05:18:47 +0000
commit199d8bb60a12def69ad54c11ea26325a48c9a2ad (patch)
tree73df27a8ebaf90cbff4ad5f1ea2971b858f3709e /src/backend/access/gist/gistutil.c
parenta6ecfd4719ac7eb2dcd1cdc3b472f25e0c876633 (diff)
downloadpostgresql-199d8bb60a12def69ad54c11ea26325a48c9a2ad.tar.gz
postgresql-199d8bb60a12def69ad54c11ea26325a48c9a2ad.zip
Fix a rare race condition when commit_siblings > 0 and a transaction commits
at the same instant as a new backend is spawned. Since CountActiveBackends() doesn't hold ProcArrayLock, it needs to be prepared for the case that a pointer at the end of the proc array is still NULL even though numProcs says it should be valid, since it doesn't hold ProcArrayLock. Backpatch to 8.1. 8.0 and earlier had this right, but it was broken in the split of PGPROC and sinval shared memory arrays. Per report and proposal by Marko Kreen.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions