diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-29 15:15:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-29 15:15:56 +0000 |
commit | 0fb3152ea9dd1cd5ef67bd148ad22b05fd8291e0 (patch) | |
tree | edf9a1c0f9efa6eb2312da69994b2904099b0a50 /src/backend/storage/ipc/ipci.c | |
parent | 1bb38bb4e5b4162c785f5bee25ac1c3ed10d7824 (diff) | |
download | postgresql-0fb3152ea9dd1cd5ef67bd148ad22b05fd8291e0.tar.gz postgresql-0fb3152ea9dd1cd5ef67bd148ad22b05fd8291e0.zip |
Minor adjustments to improve the accuracy of our computation of required
shared memory size.
Diffstat (limited to 'src/backend/storage/ipc/ipci.c')
-rw-r--r-- | src/backend/storage/ipc/ipci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index 8787ab2df82..1a11508adf1 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/ipc/ipci.c,v 1.71 2004/08/29 05:06:48 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/ipc/ipci.c,v 1.72 2004/09/29 15:15:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -69,6 +69,7 @@ CreateSharedMemoryAndSemaphores(bool makePrivate, size = hash_estimate_size(SHMEM_INDEX_SIZE, sizeof(ShmemIndexEnt)); size += BufferShmemSize(); size += LockShmemSize(maxBackends); + size += ProcGlobalShmemSize(maxBackends); size += XLOGShmemSize(); size += CLOGShmemSize(); size += SUBTRANSShmemSize(); |