Search Postgresql Archives

RE: vacuum analyze query performance - help me understand

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

 



Hi Tom,



If the plan didn't change then the stats updates weren't very relevant.

I am guessing that the actual problem was that those tables were

full of dirty rows, and the VACUUM (not the ANALYZE part) got rid

of dead rows, set hint bits on recently-updated rows, and generally

did a lot of janitorial work that makes subsequent table scans faster.



[Scot Kreienkamp]

I thought dead rows were excluded from backup and the resulting restore?  All the janitorial was already done a few hours before by a vacuum analyze, so with no activity there shouldn't have been any to do.  That's why I'm still looking for answers.





Turning off autovacuum is an anti-pattern.



[Scot Kreienkamp]

Agreed, that's why it's not disabled.  I'm out of date, not clueless.  The only time I turn off autovac is during full database restores.  Last I knew running a periodic reindex and a daily vac/analyze even with autovac enabled was considered best practice.  Is that no longer the case?



(Running a PG version that's four years past EOL is also an

anti-pattern, but you knew that.  Should I ask whether it's

at least the final 9.6 minor release?)



[Scot Kreienkamp]

It is the final release.  I guarantee I'm more irritated that we're still on this version than anyone else on earth.  They've been warned, many times and loudly, for much longer than 4 years.  All I can do is keep reminding and warning of the consequences, like not being able to get help with problems when they inevitably arise.  In the meantime, I still have to support it like a number of people's livelihoods (including mine) depends on it.  Because they do.





Scot Kreienkamp | Applications Infrastructure Architect | La-Z-Boy Corporate

One La-Z-Boy Drive | Monroe, Michigan 48162 | "  (734) 384-6403 | |  "  1-734-915-1444  |  Email: Scot.Kreienkamp@la-z-boy.com







This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.

<<attachment: winmail.dat>>


[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 Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux