Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id ACAFF632966 for ; Tue, 29 Jun 2010 14:28:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 02055-10 for ; Tue, 29 Jun 2010 17:27:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A0290632624 for ; Tue, 29 Jun 2010 14:27:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o5THRYEU020973; Tue, 29 Jun 2010 13:27:34 -0400 (EDT) To: Bruce Momjian cc: Robert Haas , Dimitri Fontaine , Josh Berkus , postgres performance list Subject: Re: PostgreSQL as a local in-memory cache In-reply-to: <201006291719.o5THJeK29759@momjian.us> References: <201006291719.o5THJeK29759@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 29 Jun 2010 13:19:40 -0400" Date: Tue, 29 Jun 2010 13:27:34 -0400 Message-ID: <20972.1277832454@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/517 X-Sequence-Number: 39373 Bruce Momjian writes: >>> I asked on IRC and was told it is true, and looking at the C code it >>> looks true. ?What synchronous_commit = false does is to delay writing >>> the wal buffers to disk and fsyncing them, not just fsync, which is >>> where the commit loss due to db process crash comes from. >> Ah, I see. Thanks. > I am personally surprised it was designed that way; I thought we would > just delay fsync. That would require writing and syncing to be separable actions. If you're using O_SYNC or similar, they aren't. regards, tom lane