diff --git a/src/ivfvacuum.c b/src/ivfvacuum.c index 4441c0d..62cbe75 100644 --- a/src/ivfvacuum.c +++ b/src/ivfvacuum.c @@ -143,8 +143,11 @@ ivfflatvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats) { Relation rel = info->index; + if (info->analyze_only) + return stats; + if (stats == NULL) - return NULL; + stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult)); stats->num_pages = RelationGetNumberOfBlocks(rel);