Get rid of PID entries in shmem hash table; there is no longer any need
Tom Lane <tgl@sss.pgh.pa.us>
Get rid of PID entries in shmem hash table; there is no longer any need for them, and making them just wastes time during backend startup/shutdown. Also, remove compile-time MAXBACKENDS limit per long-ago proposal. You can now set MaxBackends as high as your kernel can stand without any reconfiguration/recompilation.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/userlock/user_locks.c | modified | +3 −13 |
| src/backend/port/darwin/sem.c | modified | +51 −39 |
| src/backend/port/qnx4/sem.c | modified | +63 −49 |
| src/backend/postmaster/postmaster.c | modified | +6 −6 |
| src/backend/storage/ipc/shmem.c | modified | +1 −89 |
| src/backend/storage/lmgr/lock.c | modified | +6 −15 |
| src/backend/storage/lmgr/proc.c | modified | +59 −83 |
| src/backend/utils/init/postinit.c | modified | +2 −2 |
| src/backend/utils/misc/guc.c | modified | +2 −2 |
| src/include/pg_config.h.in | modified | +1 −7 |
| src/include/storage/proc.h | modified | +18 −8 |
| src/include/storage/shmem.h | modified | +1 −3 |