mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Fix stupid oversight :-(
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.210 2003/05/28 16:03:56 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.211 2003/05/29 00:54:42 tgl Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* INTERFACE ROUTINES
|
* INTERFACE ROUTINES
|
||||||
@@ -1602,6 +1602,10 @@ IndexBuildHeapScan(Relation heapRelation,
|
|||||||
|
|
||||||
MemoryContextReset(econtext->ecxt_per_tuple_memory);
|
MemoryContextReset(econtext->ecxt_per_tuple_memory);
|
||||||
|
|
||||||
|
/* Set up for predicate or expression evaluation */
|
||||||
|
if (slot)
|
||||||
|
ExecStoreTuple(heapTuple, slot, InvalidBuffer, false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In a partial index, discard tuples that don't satisfy the
|
* In a partial index, discard tuples that don't satisfy the
|
||||||
* predicate. We can also discard recently-dead tuples, since
|
* predicate. We can also discard recently-dead tuples, since
|
||||||
@@ -1612,7 +1616,6 @@ IndexBuildHeapScan(Relation heapRelation,
|
|||||||
{
|
{
|
||||||
if (!tupleIsAlive)
|
if (!tupleIsAlive)
|
||||||
continue;
|
continue;
|
||||||
ExecStoreTuple(heapTuple, slot, InvalidBuffer, false);
|
|
||||||
if (!ExecQual(predicate, econtext, false))
|
if (!ExecQual(predicate, econtext, false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user