Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 842AD1337B43 for ; Sun, 10 Oct 2010 08:45:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 90224-05 for ; Sun, 10 Oct 2010 11:45:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ka.mail.enyo.de (ka.mail.enyo.de [87.106.162.201]) by mail.postgresql.org (Postfix) with ESMTP id 38BD91337999 for ; Sun, 10 Oct 2010 08:45:06 -0300 (ADT) Received: from [172.17.135.4] (helo=deneb.enyo.de) by ka.mail.enyo.de with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1P4uKr-00054z-Vd; Sun, 10 Oct 2010 13:45:02 +0200 Received: from fw by deneb.enyo.de with local (Exim 4.72) (envelope-from ) id 1P4uKr-0005I9-Ow; Sun, 10 Oct 2010 13:45:01 +0200 From: Florian Weimer To: mladen.gogala@vmsinfo.com Cc: Greg Smith , Aaron Turner , pgsql-performance Subject: Re: large dataset with write vs read clients References: <4CAE3FDB.1040909@2ndquadrant.com> <87ocb3yu10.fsf@mid.deneb.enyo.de> <4CB0E006.8010905@vmsinfo.com> Date: Sun, 10 Oct 2010 13:45:01 +0200 In-Reply-To: <4CB0E006.8010905@vmsinfo.com> (Mladen Gogala's message of "Sat, 09 Oct 2010 17:35:02 -0400") Message-ID: <871v7y2rwi.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 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: 201010/93 X-Sequence-Number: 40512 * Mladen Gogala: > I have a logical problem with asynchronous commit. The "commit" > command should instruct the database to make the outcome of the > transaction permanent. The application should wait to see whether the > commit was successful or not. Asynchronous behavior in the commit > statement breaks the ACID rules and should not be used in a RDBMS > system. That's a bit over the top. It may make sense to use PostgreSQL even if the file system doesn't guarantuee ACID by keeping multiple checksummed copies of the database files. Asynchronous commits offer yet another trade-off here. Some people use RDBMSs mostly for the *M* part, to get a consistent administration experience across multiple applications. And even with asynchronous commits, PostgreSQL will maintain a consistent state of the database.