From f31dc0ada731d89313dbca7ef5da91d674fc640c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 16 Jul 2001 05:07:00 +0000 Subject: Partial indexes work again, courtesy of Martijn van Oosterhout. Note: I didn't force an initdb, figuring that one today was enough. However, there is a new function in pg_proc.h, and pg_dump won't be able to dump partial indexes until you add that function. --- src/backend/executor/execUtils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/executor/execUtils.c') diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index 9465604b584..2c76c9b7d98 100644 --- a/src/backend/executor/execUtils.c +++ b/src/backend/executor/execUtils.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.76 2001/07/15 22:48:17 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.77 2001/07/16 05:06:58 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -641,7 +641,7 @@ ExecInsertIndexTuples(TupleTableSlot *slot, for (i = 0; i < numIndices; i++) { IndexInfo *indexInfo; - Node *predicate; + List *predicate; InsertIndexResult result; if (relationDescs[i] == NULL) @@ -649,10 +649,10 @@ ExecInsertIndexTuples(TupleTableSlot *slot, indexInfo = indexInfoArray[i]; predicate = indexInfo->ii_Predicate; - if (predicate != NULL) + if (predicate != NIL) { /* Skip this index-update if the predicate isn't satisfied */ - if (!ExecQual((List *) predicate, econtext, false)) + if (!ExecQual(predicate, econtext, false)) continue; } -- cgit v1.2.3