We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7c7139c commitf3707d0Copy full SHA for f3707d0
src/backend/catalog/index.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $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 $
12
13
14
* INTERFACE ROUTINES
@@ -1602,6 +1602,10 @@ IndexBuildHeapScan(Relation heapRelation,
1602
1603
MemoryContextReset(econtext->ecxt_per_tuple_memory);
1604
1605
+/* Set up for predicate or expression evaluation */
1606
+if (slot)
1607
+ExecStoreTuple(heapTuple,slot,InvalidBuffer, false);
1608
+
1609
/*
1610
* In a partial index, discard tuples that don't satisfy the
1611
* predicate. We can also discard recently-dead tuples, since
@@ -1612,7 +1616,6 @@ IndexBuildHeapScan(Relation heapRelation,
1612
1616
{
1613
1617
if (!tupleIsAlive)
1614
1618
continue;
1615
-ExecStoreTuple(heapTuple,slot,InvalidBuffer, false);
1619
if (!ExecQual(predicate,econtext, false))
1620
1621
}