From: Anibal David Acosta <aa@devshock.com>
To: 'Greg Smith' <greg@2ndQuadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: synchronous_commit off
Date: Mon, 1 Aug 2011 16:05:39 -0400
Message-ID: <007101cc5086$64966780$2dc33680$@devshock.com> (raw)
In-Reply-To: <4E37040D.8000000@2ndQuadrant.com>
References: <001201cc504f$11f32e50$35d98af0$@devshock.com>
<4E37040D.8000000@2ndQuadrant.com>
the application doesn't manage money or something really really critical, so
I can live with the "in case of crash" that is not a normal behavior J
Thanks.
De: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] En nombre de Greg Smith
Enviado el: lunes, 01 de agosto de 2011 03:53 p.m.
Para: pgsql-performance@postgresql.org
Asunto: Re: [PERFORM] synchronous_commit off
On 08/01/2011 09:29 AM, Anibal David Acosta wrote:
Can a transaction committed asynchronously report an error, duplicate key or
something like that, causing a client with a OK transaction but server with
a FAILED transaction.
No. You are turning off the wait for the transaction to hit disk before
returning to the client, but all the validation checks are done before that.
The sole risk with synchronous_commit off is that a client will get COMMIT,
but the server will lose the transaction completely--when there's a crash
before it's written to disk.
--
Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: aa@devshock.com, greg@2ndQuadrant.com
Subject: Re: synchronous_commit off
In-Reply-To: <007101cc5086$64966780$2dc33680$@devshock.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox