aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-07-23 18:34:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-07-23 18:34:50 +0000
commit69f3a5c9ed7bf369db49a1696ec430d2710ef9e1 (patch)
treeb052874424567c70c783aa1056f285b583230205 /src/backend/tcop/postgres.c
parenteda117dfa0323ca1aa9dba1c77ab8585ec83d119 (diff)
downloadpostgresql-69f3a5c9ed7bf369db49a1696ec430d2710ef9e1.tar.gz
postgresql-69f3a5c9ed7bf369db49a1696ec430d2710ef9e1.zip
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions