]> granicus.if.org Git - postgresql/commit
Comments in IndexBuildHeapScan describe the indexing of recently-dead
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Mar 2006 23:02:17 +0000 (23:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Mar 2006 23:02:17 +0000 (23:02 +0000)
commit4e7d10c7cd2503193dc13a701ffd740a5741d5eb
treee8d70682bc46b3fc34241410f0d9be100a8f6999
parent0a202070603bf38ce2e2fc11a7f897fc06603b80
Comments in IndexBuildHeapScan describe the indexing of recently-dead
tuples as needed "to keep VACUUM from complaining", but actually there is
a more compelling reason to do it: failure to do so violates MVCC semantics.
This is because a pre-existing serializable transaction might try to use
the index after we finish (re)building it, and it might fail to find tuples
it should be able to see.  We got this mostly right, but not in the case
of partial indexes: the code mistakenly discarded recently-dead tuples for
partial indexes.  Fix that, and adjust the comments.
src/backend/catalog/index.c