Skip to content

Commit f3707d0

Browse files
committed
Fix stupid oversight :-(
1 parent 7c7139c commit f3707d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/catalog/index.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.210 2003/05/28 16:03:56 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.211 2003/05/29 00:54:42 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1602,6 +1602,10 @@ IndexBuildHeapScan(Relation heapRelation,
16021602

16031603
MemoryContextReset(econtext->ecxt_per_tuple_memory);
16041604

1605+
/* Set up for predicate or expression evaluation */
1606+
if (slot)
1607+
ExecStoreTuple(heapTuple, slot, InvalidBuffer, false);
1608+
16051609
/*
16061610
* In a partial index, discard tuples that don't satisfy the
16071611
* predicate. We can also discard recently-dead tuples, since
@@ -1612,7 +1616,6 @@ IndexBuildHeapScan(Relation heapRelation,
16121616
{
16131617
if (!tupleIsAlive)
16141618
continue;
1615-
ExecStoreTuple(heapTuple, slot, InvalidBuffer, false);
16161619
if (!ExecQual(predicate, econtext, false))
16171620
continue;
16181621
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy