VACUUM VERBOSE: Show dead items for an empty table.
commitbdb71dbe80d0560f84255e05b73f449e11007325
authorPeter Geoghegan <pg@bowt.ie>
Fri, 15 Apr 2022 21:20:56 +0000 (15 14:20 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 15 Apr 2022 21:20:56 +0000 (15 14:20 -0700)
treeb38e9b815247e48ac2129a0e5511c57994c475bf
parent357c8455e64915f2d8f50ca5853eb91b74470d96
VACUUM VERBOSE: Show dead items for an empty table.

Be consistent about the lines that VACUUM VERBOSE outputs by including
an "index scan not needed: " line for completely empty tables. This
makes the output more readable, especially with multiple distinct VACUUM
operations processed by the same VACUUM command.  It's also more
consistent; even empty tables can use the failsafe, which wasn't
reported in the standard way until now.

Follow-up to commit 6e20f460, which taught VACUUM VERBOSE to be more
consistent about reporting on scanned pages with empty tables.
src/backend/access/heap/vacuumlazy.c