PostgreSQL 11 Administration Cookbook
by Simon Riggs, Gianni Ciolli, Sudheer Kumar Meesala, Sheldon Strauch
Regular Maintenance
In these busy times, many people believe: if it ain't broken, don't fix it. I believe that too, but it isn't an excuse for not taking action to maintain your database servers and be sure that nothing will break.
Database maintenance is about making your database run smoothly.
PostgreSQL prefers regular maintenance, so please read the Planning maintenance recipe for more information.
We recognize that you're here for a reason and are looking for a quick solution to your needs. You're probably thinking—Fix me first, and I'll plan later. So, off we go!
PostgreSQL provides a utility command named VACUUM, which is a jokey name for a garbage collector that sweeps up all of the bad things and fixes them—or at least, most of them. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access