Re: Synchronous commit not... synchronous? - Mailing list pgsql-hackers

From Daniel Farina
Subject Re: Synchronous commit not... synchronous?
Date
Msg-id CAAZKuFaVizxDHLRTktELtgXXhbZkkgSwX29veTTE7j0U7jm1_g@mail.gmail.com
Whole thread Raw
In response to Re: Synchronous commit not... synchronous?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Mon, Nov 5, 2012 at 1:19 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Well, feel free to make a suggestion.  We could have a mode where a
> commit, once initiated, is not user-cancellable, but that doesn't seem
> like a usability improvement to me.  That just forces somebody to
> bounce the server in a situation where it isn't necessary.  The
> warning is not unclear about what has happened.

Yeah, I'm not quite so far as thinking about the best way (much less
any way) of solving the problem, only so far as "it's definitely
possible to successfully commit as much as you want, in violation of
2-safety, syncrep setting or no," and that seems like an interesting
violation of an invariant one might presume.

The warning is there, but it does render the feature a more fragile
for exposing through the very thin channel one has when dealing with
database users at arm's length, as I must.  Only so many caveats and
fine print can be shoved to the user -- this is why, for example,
support of pooling has been a heady proposition for me.

I think this is still in the realm of brain-food, since there is no
obvious model to fix this in sight.

--
fdr



pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: foreign key locks
Next
From: Josh Berkus
Date:
Subject: Re: What are the advantages of not being able to access multiple databases with one connection?