Fix logic in lazy vacuum to decide if it's worth trying to truncate the heap.
If the table was smaller than REL_TRUNCATE_FRACTION (= 16) pages, we always
tried to acquire AccessExclusiveLock on it even if there was no empty pages
at the end.
Report by Simon Riggs. Back-patch all the way to 7.4.
vacuumlazy.c (r1.115 -> r1.116)
pgsql-committers by date
|Next:||From: Heikki Linnakangas||Date: 2009-01-06 14:55:44|
|Subject: pgsql: Fix logic in lazy vacuum to decide if it's worth trying to |
|Previous:||From: Alvaro Herrera||Date: 2009-01-06 14:47:37|
|Subject: pgsql: Fix string reloption handling, per KaiGai Kohei.|