Database Maintenance

I l @ ve RuBoard

Proper database maintenance ensures that the system will always function optimally and that problems can be handled effectively. There are three main areas of database maintenance:

  • Monitoring log files.

  • Scheduling regular VACUUM and VACUUM ANALYZE events.

  • Routinely backing up.

Regular monitoring of log files can tip off administrators to potential issues that can be corrected long before they become major problems. Some administrators even write small custom scripts to parse log files and automatically mail any suspicious entries to an email address so that the administrator can take further action.

cron is also a useful database maintenance tool, especially for performing routine tasks like vacuumdb and log rotation. One of the primary reasons the vacuumdb utility was created as a separate command-line utility was to facilitate its use as an automated cron job.

I l @ ve RuBoard


PostgreSQL Essential Reference
PostgreSQL Essential Reference
ISBN: 0735711216
EAN: 2147483647
Year: 2001
Pages: 118
Authors: Barry Stinson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net