startupBufferPinWaitBufId vs. ProcGlobalShmemSize

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2011-06-14T17:45:41Z
Lists: pgsql-hackers

Attachments

ProcGlobalShmemSize() currently includes code to allow space for
startupBufferPinWaitBufId.  But I think that's redundant, because that
variable is stored in PROC_HDR *ProcGlobal, for which this function is
separately allocating space.

So I propose to apply the attached patch, barring objections.

I see no reason to back-patch this, since allocating an extra 4 bytes
of shared memory is hardly anything to get excited about.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company