]> granicus.if.org Git - postgresql/commit
Fix bug in freespace calculation in heap_multi_insert().
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 May 2012 11:10:29 +0000 (14:10 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 May 2012 11:13:06 +0000 (14:13 +0300)
commit6593c5b5dc39b179b1b7a3c947df2596af3e70c9
tree8c8d39c32282d057dacfd6a904d4358db9409c63
parent00b0c73f1f2b98a7d09de63aaa14d6498ac521ae
Fix bug in freespace calculation in heap_multi_insert().

If the amount of freespace on page was less than the amount reserved by
fillfactor, the calculation would underflow.

This fixes bug #6643 reported by Tomonari Katsumata.
src/backend/access/heap/heapam.c