Re: 9.6 -> 10.0 - Mailing list pgsql-advocacy

From Josh berkus
Subject Re: 9.6 -> 10.0
Date
Msg-id 57363CD0.2030602@agliodbs.com
Whole thread Raw
In response to Re: 9.6 -> 10.0  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: 9.6 -> 10.0
List pgsql-advocacy
On 05/13/2016 01:41 PM, Bruce Momjian wrote:
> On Thu, May 12, 2016 at 02:07:04PM -0300, Euler Taveira wrote:
>> On 12-05-2016 13:09, Bruce Momjian wrote:
>>> That is an interesting approach.  How many applications are prepared to
>>> re-sent a transaction block based on the error returned by pgbouncer in
>>> this case?
>>>
>> FYI, pgBouncer does not error out transactions. While in PAUSE mode,
>> pgBouncer waits for the current transactions to finish and the new ones
>> are put in a wait queue. After the RESUME command, pgBouncer sends the
>> transaction in the wait queue. Of course, if your application has a
>> response timeout you will see cancellations.
>
> Oh, that seems useful.
>

The missing feature is that you can never forceably terminate the
connections to the old master without restarting pgbouncer.  And if you
just shut down the old database server, with some clients still
connected, pgbouncer goes into "error mode" and starts denying some
legit connections.  So there's still work to be done here.

--
--
Josh Berkus
Red Hat OSAS
(any opinions are my own)


pgsql-advocacy by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 9.6 -> 10.0
Next
From: Damien Clochard
Date:
Subject: Re: 20th anniversary posters