From 799bc58dc7ed9899facfc8302040749cb0a9af2f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 22 Feb 2003 00:45:05 +0000 Subject: More infrastructure for btree compaction project. Tree-traversal code now knows what to do upon hitting a dead page (in theory anyway, it's untested...). Add a post-VACUUM-cleanup entry point for index AMs, to provide a place for dead-page scavenging to happen. Also, fix oversight that broke btpo_prev links in temporary indexes. initdb forced due to additions in pg_am. --- src/backend/access/gist/gist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/access/gist/gist.c') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 6591e766448..472bcf45276 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.99 2002/11/13 00:39:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.100 2003/02/22 00:45:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1650,8 +1650,9 @@ gistbulkdelete(PG_FUNCTION_ARGS) result = (IndexBulkDeleteResult *) palloc(sizeof(IndexBulkDeleteResult)); result->num_pages = num_pages; - result->tuples_removed = tuples_removed; result->num_index_tuples = num_index_tuples; + result->tuples_removed = tuples_removed; + result->pages_free = 0; PG_RETURN_POINTER(result); } -- cgit v1.2.3