Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5D31447640F for ; Mon, 16 Sep 2002 12:46:37 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 8AB5B476409 for ; Mon, 16 Sep 2002 12:46:35 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g8GGkNd18398; Mon, 16 Sep 2002 12:46:23 -0400 (EDT) From: Bruce Momjian Message-Id: <200209161646.g8GGkNd18398@candle.pha.pa.us> Subject: Re: fsync or fdatasync In-Reply-To: To: Gaetano Mendola Date: Mon, 16 Sep 2002 12:46:22 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/184 X-Sequence-Number: 5723 Gaetano Mendola wrote: > > "Bruce Momjian" wrote in message > news:200209101540.g8AFeOo21086@candle.pha.pa.us... > > > > The original poster was wrong about the default. > > > > We use fdatasync where available, and fsync when it is not. We also use > > O_SYNC on open if it is available. > > > The original poster is me! :-) > > I was pointed to a document ( that I don't find anymore ) > where I understood that the default was fsync. > I'm sorry for the little flame.... :-( > > > PS. It is in the plans to use raw disks ? No plans. Raw disk is only marginally faster and a lot more complicated. See the TODO performance link for details. -- 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