]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix oversight in sizing of shared buffer lookup hashtable. Because
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2006 18:34:50 +0000 (18:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2006 18:34:50 +0000 (18:34 +0000)
commit69f3a5c9ed7bf369db49a1696ec430d2710ef9e1
treeb052874424567c70c783aa1056f285b583230205
parenteda117dfa0323ca1aa9dba1c77ab8585ec83d119
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