Revert "Consistently test for in-use shared memory."
Noah Misch <noah@leadboat.com>
Revert "Consistently test for in-use shared memory." This reverts commits 2f932f71d9f2963bbd201129d7b971c8f5f077fd, 16ee6eaf80a40007a138b60bb5661660058d0422 and 6f0e190056fe441f7cf788ff19b62b13c94f68f3. The buildfarm has revealed several bugs. Back-patch like the original commits. Discussion: https://postgr.es/m/20190404145319.GA1720877@rfd.leadboat.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/port/sysv_shmem.c | modified | +110 −147 |
| src/backend/port/win32_shmem.c | modified | +6 −1 |
| src/backend/postmaster/postmaster.c | modified | +6 −6 |
| src/backend/storage/ipc/ipci.c | modified | +10 −4 |
| src/backend/utils/init/postinit.c | modified | +2 −4 |
| src/include/storage/ipc.h | modified | +1 −1 |
| src/include/storage/pg_shmem.h | modified | +3 −3 |
Discussion
- Weaker shmem interlock w/o postmaster.pid 33 messages · 2013-09-11 → 2019-05-10