Remove the last vestiges of the MAKE_PTR/MAKE_OFFSET mechanism. We haven't
Tom Lane <tgl@sss.pgh.pa.us>
Remove the last vestiges of the MAKE_PTR/MAKE_OFFSET mechanism. We haven't allowed different processes to have different addresses for the shmem segment in quite a long time, but there were still a few places left that used the old coding convention. Clean them up to reduce confusion and improve the compiler's ability to detect pointer type mismatches. Kris Jurka
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +12 −12 |
| src/backend/postmaster/autovacuum.c | modified | +27 −30 |
| src/backend/storage/ipc/shmem.c | modified | +18 −18 |
| src/backend/storage/ipc/shmqueue.c | modified | +37 −117 |
| src/backend/storage/lmgr/deadlock.c | modified | +9 −9 |
| src/backend/storage/lmgr/lock.c | modified | +2 −2 |
| src/backend/storage/lmgr/proc.c | modified | +29 −33 |
| src/include/storage/pg_shmem.h | modified | +2 −2 |
| src/include/storage/proc.h | modified | +3 −3 |
| src/include/storage/shmem.h | modified | +14 −42 |