*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.261.2.1 2005/11/22 18:23:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.261.2.2 2006/03/24 23:02:23 tgl Exp $
*
*
* INTERFACE ROUTINES
/*
* If tuple is recently deleted then we must index it
- * anyway to keep VACUUM from complaining.
+ * anyway to preserve MVCC semantics. (Pre-existing
+ * transactions could try to use the index after we
+ * finish building it, and may need to see such tuples.)
*/
indexIt = true;
tupleIsAlive = false;
/*
* In a partial index, discard tuples that don't satisfy the
- * predicate. We can also discard recently-dead tuples, since VACUUM
- * doesn't complain about tuple count mismatch for partial indexes.
+ * predicate.
*/
if (predicate != NIL)
{
- if (!tupleIsAlive)
- continue;
if (!ExecQual(predicate, econtext, false))
continue;
}