diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-04-19 23:27:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-04-19 23:27:17 +0000 |
commit | 011c3e62e78b02a573f6f59ce78b1e7515d380c0 (patch) | |
tree | 19c3c8ab77264aa49421cd432025f0fa25edbf60 /src/backend/storage/ipc/ipci.c | |
parent | 8f73bbae854b71bea6a544941886f072829beb72 (diff) |
Code review for ARC patch. Eliminate static variables, improve handling
of VACUUM cases so that VACUUM requests don't affect the ARC state at all,
avoid corner case where BufferSync would uselessly rewrite a buffer that
no longer contains the page that was to be flushed. Make some minor
other cleanups in and around the bufmgr as well, such as moving PinBuffer
and UnpinBuffer into bufmgr.c where they really belong.
Diffstat (limited to 'src/backend/storage/ipc/ipci.c')
-rw-r--r-- | src/backend/storage/ipc/ipci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index ac738d8f77a..3e8c2a6c1b6 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.65 2004/02/25 19:41:22 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/ipc/ipci.c,v 1.66 2004/04/19 23:27:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -60,7 +60,8 @@ CreateSharedMemoryAndSemaphores(bool makePrivate, * moderately-accurate estimates for the big hogs, plus 100K for the * stuff that's too small to bother with estimating. */ - size = BufferShmemSize(); + size = hash_estimate_size(SHMEM_INDEX_SIZE, sizeof(ShmemIndexEnt)); + size += BufferShmemSize(); size += LockShmemSize(maxBackends); size += XLOGShmemSize(); size += CLOGShmemSize(); |