]> granicus.if.org Git - postgresql/commit
Fix VACUUM so that it can use pages as move targets even if they do not
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jun 2001 20:14:27 +0000 (20:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jun 2001 20:14:27 +0000 (20:14 +0000)
commit0eab92c0e674815d3b33868c14886845b68d7cfd
treef3c641a4728f37e4685aa6a2c7c9f93e9d855961
parent4fe8490b5dc62005943336ff2f65614eae01b8d2
Fix VACUUM so that it can use pages as move targets even if they do not
have any newly-dead tuples on them.  This is a longstanding deficiency
that prevents VACUUM from compacting a file as much as one would expect.
Change requires fixing repair_frag to not assume that fraged_pages is
a subset of vacuum_pages.
Also make some further cleanups of places that assumed page numbers fit
in int and tuple counts fit in uint32.
src/backend/commands/vacuum.c