Re: Possible causes for database corruption and solutions

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: Michael Clark <codingninja(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Possible causes for database corruption and solutions
Date: 2009-12-16 10:29:09
Message-ID: 4B28B675.6080606@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 16/12/2009 3:54 PM, Florian Weimer wrote:
> * Michael Clark:
>
>> The solution to the problem seemed to be to change the value for the
>> wal_sync_method setting to fsync_writethrough from the default of fsync.
>> I was curious if there were perhaps any other reasons that we should look
>> at? Or if there may be other alternatives to changing the wal_sync_method
>> setting.
>
> Fsync and related settings only matter if the operating system (not
> just the database) crashes. Does this happen frequently for you?

When you're dealing with end users who have machines running
god-knows-what kinds of awful hardware drivers and with no power
protection, then I expect it does. Add laptop users with ageing/flakey
batteries, laptops let go flat after they go into powersave suspend,
etc, and you're sure to see plenty of cases of apparent crashes.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Florian Weimer 2009-12-16 10:41:14 Re: Possible causes for database corruption and solutions
Previous Message Mike Christensen 2009-12-16 09:34:16 Re: Need some advice on a difficult query