Re: Fast Inserts and Hardware Questions - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Fast Inserts and Hardware Questions
Date
Msg-id 200103150218.VAA22193@candle.pha.pa.us
Whole thread Raw
In response to Re: Fast Inserts and Hardware Questions  (Richard H <dev@archonet.com>)
List pgsql-general
> > * Since most of what I am doing is inserts I will assume that the disk
> > will be my bottleneck over anything else.  Is this correct?
>
> Yes.
>
> > * Will the 7.1 WAL save me, when it comes to insert times?
> > * I read something about disabling fsync() to speed up inserts.  How
> > much will this speed things up?  I would consider it as I COULD rebuild
> > lost data from my logs in the event of a system crash and one night a
> > year of panic on my part is worth saving $100,000 in drive arrays.
>
> Turning fsync off gave about a factor of 10 increase (!) before 7.1 - the
> WAL stuff means you can do so safely. Basically PG should rebuild itself
> from the WAL file in the event of system failure. Have to admit I've not
> tried it myself yet.

No.  You should get good performance in 7.1 without using -F.  Using -F
in 7.1 makes the system unreliable in case of an OS crash.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "Ligia M. Pimentel"
Date:
Subject: I wonder why I don't get an exception on delphi?
Next
From: "Gordon A. Runkle"
Date:
Subject: Re: Fast Inserts and Hardware Questions