summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-02-24 00:57:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-02-24 00:57:17 +0000
commit0797bb5c50dfefd5beee6041ccba075f710d3792 (patch)
treeac5c68fff0b89402926c83c28f46406aaf66ab93 /src/backend/access/gist/gist.c
parent3981f2195f124f8f17de97a3d64f91f3b4ca5219 (diff)
downloadpostgresql-0797bb5c50dfefd5beee6041ccba075f710d3792.tar.gz
During VACUUM FULL, truncate off any deletable pages that are at the
end of a btree index. This isn't super-effective, since we won't move nondeletable pages, but it's better than nothing. Also, improve stats displayed during VACUUM VERBOSE.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 472bcf4527..56a5c6fb60 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.100 2003/02/22 00:45:03 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.101 2003/02/24 00:57:17 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1648,11 +1648,10 @@ gistbulkdelete(PG_FUNCTION_ARGS)
/* return statistics */
num_pages = RelationGetNumberOfBlocks(rel);
- result = (IndexBulkDeleteResult *) palloc(sizeof(IndexBulkDeleteResult));
+ result = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
result->num_pages = num_pages;
result->num_index_tuples = num_index_tuples;
result->tuples_removed = tuples_removed;
- result->pages_free = 0;
PG_RETURN_POINTER(result);
}