Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7416E632A35 for ; Tue, 29 Jun 2010 10:32:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 82967-07 for ; Tue, 29 Jun 2010 13:32:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 8CDF06329BB for ; Tue, 29 Jun 2010 10:32:44 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5TDWTZ01574; Tue, 29 Jun 2010 09:32:29 -0400 (EDT) From: Bruce Momjian Message-Id: <201006291332.o5TDWTZ01574@momjian.us> Subject: Re: PostgreSQL as a local in-memory cache In-Reply-To: To: Robert Haas Date: Tue, 29 Jun 2010 09:32:29 -0400 (EDT) CC: Tom Lane , Dimitri Fontaine , Josh Berkus , postgres performance list X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" 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/511 X-Sequence-Number: 39367 Robert Haas wrote: > On Mon, Jun 28, 2010 at 5:57 PM, Bruce Momjian wrote: > >> The patch also documents that synchronous_commit = false has > >> potential committed transaction loss from a database crash (as well as > >> an OS crash). > > Is this actually true? 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. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +