Re: database corruption questions

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Heine Ferreira" <heine(dot)ferreira(at)gmail(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: database corruption questions
Date: 2012-10-23 18:18:23
Message-ID: 20121023181824.224560@gmx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Heine Ferreira wrote:

> Are there any best practices for avoiding database corruption?

First and foremost, do not turn off fsync or full_page_writes in your
configuration. After that the most common causes for database
corruption I've seen are bad RAM (ECC RAM is a requirement, not an
option for a serious database server in my book), failing hard drives
(use RAID and SMART monitoring, and have a sane hardware replacement
policy), or buggy device drivers (pay attention to releases which fix
bugs or security vulnerabilities which could affect you). It's
getting rare to see this now, but it used to be common for some
drives to lie to you about having written data when it was actually
just in cache -- a good BBU RAID controller will go out of its way to
keep the drives honest.

-Kevin

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2012-10-23 18:52:52 Need sql to pull data from terribly architected table
Previous Message Myers Brian D 2012-10-23 18:06:07 Re: [GENERAL] Streaming Replication Server Crash