Avoid assuming that type key_t is 32 bits, since it reportedly isn't
authorTom Lane <[email protected]>
Mon, 1 Dec 2003 22:15:38 +0000 (22:15 +0000)
committerTom Lane <[email protected]>
Mon, 1 Dec 2003 22:15:38 +0000 (22:15 +0000)
commit5e2b99db95edea2a23ecdd62b3711a3feb3a28b9
treeb2df40aa0867cbf2bc1fec6b70b400ab29bd6a5b
parent35ddc2edeea919bad940b3e0ca8619688adba4b1
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).
src/backend/bootstrap/bootstrap.c
src/backend/port/sysv_sema.c
src/backend/port/sysv_shmem.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/include/storage/pg_shmem.h