Thread: pgsql: Fix bug in freespace calculation in heap_multi_insert().

pgsql: Fix bug in freespace calculation in heap_multi_insert().

From
Heikki Linnakangas
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6593c5b5dc39b179b1b7a3c947df2596af3e70c9

Modified Files
--------------
src/backend/access/heap/heapam.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)