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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in freespace calculation in heap_multi_insert().
Date: 2012-05-16 11:14:19
Message-ID: E1SUcBP-0007tm-KC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-16 11:28:51 pgsql: Improve error message for ALTER COLUMN TYPE coercion failure.
Previous Message Peter Eisentraut 2012-05-15 19:56:23 pgsql: Fix a whitespace issue with the man pages