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/bootstrap/bootstrap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index ee1a4b7c31f..7fc54779680 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.111 2001/07/15 22:48:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.112 2001/07/16 05:06:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1100,8 +1100,9 @@ index_register(char *heap, newind->il_info = (IndexInfo *) palloc(sizeof(IndexInfo)); memcpy(newind->il_info, indexInfo, sizeof(IndexInfo)); - /* predicate will likely be null anyway, but may as well copy it */ - newind->il_info->ii_Predicate = copyObject(indexInfo->ii_Predicate); + /* predicate will likely be null, but may as well copy it */ + newind->il_info->ii_Predicate = (List *) + copyObject(indexInfo->ii_Predicate); newind->il_next = ILHead; ILHead = newind; -- cgit v1.2.3