From: lars hofhansl <lhofhansl@yahoo.com>
To: Anibal David Acosta <aa@devshock.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: synchronous_commit off
Date: Tue, 2 Aug 2011 17:08:08 -0700 (PDT)
Message-ID: <1312330088.11904.YahooMailNeo@web121712.mail.ne1.yahoo.com> (raw)
In-Reply-To: <001201cc504f$11f32e50$35d98af0$@devshock.com>
References: <001201cc504f$11f32e50$35d98af0$@devshock.com>
No: The commit has the same guarantees as a synchronous commit w.r.t. data consistency. The commit can only fail (as a whole) due to hardware problems or postgres backend crashes.
And yes: The client commit returns, but the server can fail later and not persist the transaction and it will be lost (again as a whole).
Your application should be able to tolerate losing the latest committed transactions if you use this.
The difference to fsync=off is that a server crash will leave the database is a consistent state with just the latest transactions lost.
________________________________
From: Anibal David Acosta <aa@devshock.com>
To: pgsql-performance@postgresql.org
Sent: Monday, August 1, 2011 6:29 AM
Subject: [PERFORM] synchronous_commit off
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.
Thanks
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: lhofhansl@yahoo.com, aa@devshock.com
Subject: Re: synchronous_commit off
In-Reply-To: <1312330088.11904.YahooMailNeo@web121712.mail.ne1.yahoo.com>
References: <001201cc504f$11f32e50$35d98af0$@devshock.com> <1312330088.11904.YahooMailNeo@web121712.mail.ne1.yahoo.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