]> granicus.if.org Git - postgresql/commit
Fix oversight in sizing of shared buffer lookup hashtable. Because
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2006 18:34:45 +0000 (18:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2006 18:34:45 +0000 (18:34 +0000)
commitb25dc481c8cf2d5ec894b6267ca97939997c698e
tree6ee3756b32df6bacc8216f97e10213e56c5fdea4
parent10b9ca3d054a75e3c361b12388c50a11c828aa24
Fix oversight in sizing of shared buffer lookup hashtable.  Because
BufferAlloc tries to insert a new mapping entry before deleting the old one
for a buffer, we have a transient need for more than NBuffers entries ---
one more in 8.1, and as many as NUM_BUFFER_PARTITIONS more in CVS HEAD.
In theory this could lead to an "out of shared memory" failure if shmem
had already been completely claimed by the time the extra entries were
needed.
src/backend/storage/buffer/freelist.c