mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Minor adjustments to improve the accuracy of our computation of required
shared memory size.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.35 2004/09/28 20:46:27 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.36 2004/09/29 15:15:54 tgl Exp $
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
@@ -330,7 +330,7 @@ FreeSpaceShmemSize(void)
|
||||
size = MAXALIGN(sizeof(FSMHeader));
|
||||
|
||||
/* hash table, including the FSMRelation objects */
|
||||
size += hash_estimate_size(MaxFSMRelations, sizeof(FSMRelation));
|
||||
size += hash_estimate_size(MaxFSMRelations + 1, sizeof(FSMRelation));
|
||||
|
||||
/* page-storage arena */
|
||||
nchunks = (MaxFSMPages - 1) / CHUNKPAGES + 1;
|
||||
|
||||
Reference in New Issue
Block a user