Re: Worries about delayed-commit semantics

From: PFC <lists(at)peufeu(dot)com>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>, "Simon Riggs" <simon(at)2ndquadrant(dot)com>
Cc: "Gregory Stark" <stark(at)enterprisedb(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Worries about delayed-commit semantics
Date: 2007-06-22 14:57:34
Message-ID: op.tubvt8cecigqcu@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 22 Jun 2007 16:43:00 +0200, Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> Simon Riggs wrote:
>> On Fri, 2007-06-22 at 14:29 +0100, Gregory Stark wrote:
>> > "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
>> >
>> > > Tom Lane wrote:
>> > >
>> > >> untrustworthy disk hardware, for instance. I'd much rather use
>> names
>> > >> derived from "deferred commit" or "delayed commit" or some such.
>> > >
>> > > Honestly, I prefer these names as well as it seems directly related
>> versus
>> > > transaction guarantee which sounds to be more like us saying, if we
>> turn it off
>> > > our transactions are bogus.
>>
>> That was the intention..., but name change accepted.
>>
>> > Hm, another possibility: "synchronous_commit = off"
>>
>> Ooo, I like that. Any other takers?
>
> Yea, I like that too but I am now realizing that we are not really
> deferring or delaying the "COMMIT" command but rather the recovery of
> the commit. GUC as full_commit_recovery?
>

commit_waits_for_fsync =

force_yes : makes all commits "hard"
yes : commits are "hard" unless specified otherwise [default]
no : commits are "soft" unless specified otherwise [should replace
fsync=off use case]
force_no : makes all commits "soft" (controller with write cache
"emulator")

the force_yes and force_no are for benchmarking purposes mostly, ie. once
your app is tuned to specify which commits have to be guaranteed ("hard")
and which don't ("soft") you can then bench it with force_yes and force_no
to see how much you gained, and how much you'd gain by buying a write
cache controller...

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-06-22 14:57:51 Re: Worries about delayed-commit semantics
Previous Message Bruce Momjian 2007-06-22 14:52:27 Re: Worries about delayed-commit semantics