]> granicus.if.org Git - postgresql/commit
Put in place some defenses against being fooled by accidental match of
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Nov 2004 21:30:18 +0000 (21:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Nov 2004 21:30:18 +0000 (21:30 +0000)
commit8f6278d907466454abdeead00d99efab308a74dc
tree8455c457f64fce67a26ff09b41a6c0fe2fa2b856
parent58825b8cd67e02b00393cc0c80421cc53fe51601
Put in place some defenses against being fooled by accidental match of
shared memory segment ID.  If we can't access the existing shmem segment,
it must not be relevant to our data directory.  If we can access it,
then attach to it and check for an actual match to the data directory.
This should avoid some cases of failure-to-restart-after-boot without
introducing any significant risk of failing to detect a still-running
old backend.
src/backend/port/sysv_shmem.c
src/include/storage/pg_shmem.h