• Tom Lane's avatar
    Put in place some defenses against being fooled by accidental match of · 8f6278d9
    Tom Lane authored
    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.
    8f6278d9
sysv_shmem.c 14.8 KB