diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-01-06 14:56:13 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2009-01-06 14:56:13 +0000 |
commit | 4d79a504942d7e3f58133bc56087137091f3a5b7 (patch) | |
tree | dbee2ea974aac96a8bc3009547ebe134c3325567 /src/backend/access/gist/gistscan.c | |
parent | 31f6cfb69077979f78fe854730c5d6e20f15a67a (diff) | |
download | postgresql-4d79a504942d7e3f58133bc56087137091f3a5b7.tar.gz postgresql-4d79a504942d7e3f58133bc56087137091f3a5b7.zip |
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.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions