Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2007-09-16 02:38:25 +0000
committerTom Lane2007-09-16 02:38:25 +0000
commit11a8925afd066e80d01f8709c747b20ef6616dbc (patch)
treeebb864cdc6317e2bbf3c2fba6610d0beb7b170a5 /config/java.m4
parent2f2f9b9bae54a09012ab37a8db6fee692d81972f (diff)
Fix aboriginal mistake in lazy VACUUM's code for truncating away
no-longer-needed pages at the end of a table. We thought we could throw away pages containing HEAPTUPLE_DEAD tuples; but this is not so, because such tuples very likely have index entries pointing at them, and we wouldn't have removed the index entries. The problem only emerges in a somewhat unlikely race condition: the dead tuples have to have been inserted by a transaction that later aborted, and this has to have happened between VACUUM's initial scan of the page and then rechecking it for empty in count_nondeletable_pages. But that timespan will include an index-cleaning pass, so it's not all that hard to hit. This seems to explain a couple of previously unsolved bug reports.
Diffstat (limited to 'config/java.m4')
0 files changed, 0 insertions, 0 deletions