Re: Why is my table not autovacuuming?

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

 



On Mon, Aug 28, 2017 at 9:44 AM, Joe Conway <mail@xxxxxxxxxxxxx> wrote:
Then at
​ ​
some point your server lost power. The info in the stats collector gets
reset on recovery.

Haven't pondered the vacuum side of the equation but ISTM if the auto-analyze daemon is confronted with total amnesia that it should go ahead and schedule an analyze on the entire database.  ANALYZE is relatively inexpensive.

And maybe learn some techniques to compensate.  Like copying the most recent snapshot of its input data to some place that survives a crash-restart.​

Also:

(formula) "is compared to the total number of tuples inserted, updated, or deleted since the last ANALYZE."


Since there are other ways for the stats to reset beside running ANALYZE this sentence hides a critical and should be amended to be more accurate.

David J.


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux