Avoid assuming that type key_t is 32 bits, since it reportedly isn't
Tom Lane <tgl@sss.pgh.pa.us>
Avoid assuming that type key_t is 32 bits, since it reportedly isn't on 64-bit Solaris. Use a non-system-dependent datatype for UsedShmemSegID, namely unsigned long (which we were already assuming could hold a shmem key anyway, cf RecordSharedMemoryInLockFile).
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +4 −2 |
| src/backend/port/sysv_sema.c | modified | +4 −4 |
| src/backend/port/sysv_shmem.c | modified | +11 −8 |
| src/backend/postmaster/postmaster.c | modified | +7 −5 |
| src/backend/tcop/postgres.c | modified | +3 −2 |
| src/include/storage/pg_shmem.h | modified | +2 −4 |