diff options
author | Peter Geoghegan <pg@bowt.ie> | 2021-02-11 16:49:41 -0800 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2021-02-11 16:49:41 -0800 |
commit | 3063eb17593c3ad498ce4e89db3358862ea2dbb6 (patch) | |
tree | 32ef5dbcabfe0e7eae3784fad45c33ec7d7dabcc /src | |
parent | 62535cae9723afc48173ba1be65f1c7491813fc2 (diff) | |
download | postgresql-3063eb17593c3ad498ce4e89db3358862ea2dbb6.tar.gz postgresql-3063eb17593c3ad498ce4e89db3358862ea2dbb6.zip |
Remove obsolete IndexBulkDeleteResult stats field.
The pages_removed field is no longer used for anything. It hasn't been
possible for an index to physically shrink since old-style VACUUM FULL
was removed by commit 0a469c87.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/gist/gistvacuum.c | 3 | ||||
-rw-r--r-- | src/include/access/genam.h | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/backend/access/gist/gistvacuum.c b/src/backend/access/gist/gistvacuum.c index 94a7e127639..ddecb8ab18e 100644 --- a/src/backend/access/gist/gistvacuum.c +++ b/src/backend/access/gist/gistvacuum.c @@ -546,9 +546,6 @@ gistvacuum_delete_empty_pages(IndexVacuumInfo *info, GistVacState *vstate) ReleaseBuffer(buffer); - /* update stats */ - vstate->stats->pages_removed += deleted; - /* * We can stop the scan as soon as we have seen the downlinks, even if * we were not able to remove them all. diff --git a/src/include/access/genam.h b/src/include/access/genam.h index 0eab1508d37..ffa1a4c80db 100644 --- a/src/include/access/genam.h +++ b/src/include/access/genam.h @@ -63,16 +63,14 @@ typedef struct IndexVacuumInfo * of which this is just the first field; this provides a way for ambulkdelete * to communicate additional private data to amvacuumcleanup. * - * Note: pages_removed is the amount by which the index physically shrank, - * if any (ie the change in its total size on disk). pages_deleted and - * pages_free refer to free space within the index file. Some index AMs - * may compute num_index_tuples by reference to num_heap_tuples, in which - * case they should copy the estimated_count field from IndexVacuumInfo. + * Note: pages_deleted and pages_free refer to free space within the index + * file. Some index AMs may compute num_index_tuples by reference to + * num_heap_tuples, in which case they should copy the estimated_count field + * from IndexVacuumInfo. */ typedef struct IndexBulkDeleteResult { BlockNumber num_pages; /* pages remaining in index */ - BlockNumber pages_removed; /* # removed during vacuum operation */ bool estimated_count; /* num_index_tuples is an estimate */ double num_index_tuples; /* tuples remaining */ double tuples_removed; /* # removed during vacuum operation */ |