pgvector.git / summary / log / commit / refs
commit dbfc6a35d9947922903dd20ef0ca943a17a5c199
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Mar 12 20:34:26 2023 +0000
Improved vacuumcleanup stats
src/ivfvacuum.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ivfvacuum.c b/src/ivfvacuum.c
index 4441c0d5..62cbe752 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);
[parent: bbae64b7845a]