Rearrange handling of MAXBACKENDS a little bit. The default setting
Tom Lane <tgl@sss.pgh.pa.us>
Rearrange handling of MAXBACKENDS a little bit. The default setting of MAXBACKENDS is now 1024, since all it's costing is about 32 bytes of memory per array slot. configure's --with-maxbackends switch now controls DEF_MAXBACKENDS which is simply the default value of the postmaster's -N switch. Thus, the out-of-the-box configuration will still limit you to 64 backends, but you can go up to 1024 backends simply by restarting the postmaster with a different -N switch --- no rebuild required.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +10 −9 |
| src/backend/storage/ipc/ipc.c | modified | +6 −5 |
| src/backend/storage/ipc/ipci.c | modified | +4 −7 |
| src/backend/storage/lmgr/lock.c | modified | +11 −10 |
| src/backend/storage/lmgr/proc.c | modified | +23 −18 |
| src/configure | modified | +5 −5 |
| src/configure.in | modified | +5 −5 |
| src/include/config.h.in | modified | +9 −2 |
| src/include/storage/ipc.h | modified | +1 −2 |
| src/include/storage/lock.h | modified | +5 −5 |