mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Improved vacuumcleanup stats
This commit is contained in:
@@ -143,8 +143,11 @@ ivfflatvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
|
|||||||
{
|
{
|
||||||
Relation rel = info->index;
|
Relation rel = info->index;
|
||||||
|
|
||||||
|
if (info->analyze_only)
|
||||||
|
return stats;
|
||||||
|
|
||||||
if (stats == NULL)
|
if (stats == NULL)
|
||||||
return NULL;
|
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
|
||||||
|
|
||||||
stats->num_pages = RelationGetNumberOfBlocks(rel);
|
stats->num_pages = RelationGetNumberOfBlocks(rel);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user