Fix VACUUM VERBOSE's LP_DEAD item pages output.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 28 May 2021 00:09:16 +0000 (17:09 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 28 May 2021 00:09:16 +0000 (17:09 -0700)
Oversight in commit 5100010e.

src/backend/access/heap/vacuumlazy.c

index fe18af61b3739207e6ae65164f99cb63410a1fdb..ad3feb88b3be994507bcdd1c8f69d0aaa5e4b257 100644 (file)
@@ -2153,7 +2153,7 @@ lazy_vacuum(LVRelState *vacrel, bool onecall)
                vacrel->do_index_vacuuming = false;
                ereport(elevel,
                                (errmsg("\"%s\": index scan bypassed: %u pages from table (%.2f%% of total) have %lld dead item identifiers",
-                                               vacrel->relname, vacrel->rel_pages,
+                                               vacrel->relname, vacrel->lpdead_item_pages,
                                                100.0 * vacrel->lpdead_item_pages / vacrel->rel_pages,
                                                (long long) vacrel->lpdead_items)));
        }