An index-only scan over 200,001 rows of a freshly loaded table:
before VACUUM: 200,001 heap fetches, 1,917 buffers, 7.1 ms
after VACUUM: 0 heap fetches, 553 buffers, 4.4 ms
The plan said Index Only Scan both times. Until VACUUM marks pages all-visible, it checks the table anyway.
