pgvector.git / summary / log / commit / refs
commit 42da2b334b75a9314e9a3fddfe282cd69387bf44
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Mar 12 20:57:40 2023 +0000
Restored previous behavior and added comment
src/ivfvacuum.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/ivfvacuum.c b/src/ivfvacuum.c
index 62cbe752..e3a0def6 100644
--- a/src/ivfvacuum.c
+++ b/src/ivfvacuum.c
@@ -146,8 +146,10 @@ ivfflatvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
if (info->analyze_only)
return stats;
+ /* stats is NULL if ambulkdelete not called */
+ /* OK to return NULL if index not changed */
if (stats == NULL)
- stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
+ return NULL;
stats->num_pages = RelationGetNumberOfBlocks(rel);
[parent: dbfc6a35d994]