Search Postgresql Archives

Re: what specifically does vacuum have to scan / why does it need to rescan the same indexes many, many times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, July 1, 2014, john gale <john@xxxxxxxxxxxx> wrote:

What does vacuum have to scan to be able to reclaim space, and how many times does it need to scan to finalize ?

More specifically, my VACUUM VERBOSE <table> is taking a long time and seems to be rescanning the same indexes / fields multiple times without finishing.

vacuum can only memorize one dead tuple for every 6 bytes of maintenance_work_mem.  If there are more dead tuples than that, it needs to make multiple passes over the indexes.
 
Increase maintenance_work_mem to improve the efficiency.

Cheers,

Jeff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux