Re: Datatypes and performance - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Datatypes and performance
Date
Msg-id 200307210210.h6L2AKQ12895@candle.pha.pa.us
Whole thread Raw
In response to Re: Datatypes and performance  (Richard Huxton <dev@archonet.com>)
List pgsql-general
Richard Huxton wrote:
> > If the answer is "yes", then I understand the use of FSYNC.
> >
> > If the answer is "no", then i don't see the point in using FSYNC at all.
>
> The answer is "yes" providing:
> 1. Your hardware didn't suffer a failure during the outage.
> 2. Your disks don't like to the operating-system.
>
> The second point is important - some disks have write-cache enabled and report
> "done" when data is written to the cache not the platter. Google for
> discussion.

The problem here is whether write-cache is enabled _and_ the disk drive
doesn't use some trick of using the disk drive rotational energy to
ensure that the write cache gets flushed to disk on a power failure, or
perhaps uses some short-term battery to make sure the data gets flushed.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Raymond
Date:
Subject: Trigger Function DML and Permissions
Next
From: Bruce Momjian
Date:
Subject: Re: Datatypes and performance