Re: PG wire protocol question

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: PG wire protocol question
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B53850D5C@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на PG wire protocol question  (Boszormenyi Zoltan <zboszor@pr.hu>)
Ответы Re: PG wire protocol question  (Manuel Gómez <targen@gmail.com>)
Re: PG wire protocol question  (Boszormenyi Zoltan <zboszor@pr.hu>)
Список pgsql-general
Boszormenyi Zoltan wrote:
> it was a long time I have read this list or written to it.
> 
> Now, I have a question. This blog post was written about 3 years ago:
> https://aphyr.com/posts/282-jepsen-postgres
> 
> Basically, it talks about the client AND the server as a system
> and if the network is cut between sending COMMIT and
> receiving the answer for it, the client has no way to know
> whether the transaction was actually committed.
> 
> The client connection may just timeout and a reconnect would
> give it a new connection but it cannot pick up its old connection
> where it left. So it cannot really know whether the old transaction
> was committed or not, possibly without doing expensive queries first.
> 
> Has anything changed on that front?

That blog post seems ill-informed - that has nothing to do with
two-phase commit.

The problem - that the server may commit a transaction, but the client
never receives the server's response - is independent of whether
two-phase commit is used or not.

This is not a problem of PostgreSQL, it is a generic problem of communication.

What would be the alternative?
That the server has to wait for the client to receive the commit response?
But what if the client received the message and the server or the network
go down before the server learns of the fact?
You see that this would lead to an infinite regress.

Yours,
Laurenz Albe

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: FIRST_VALUE argument must appear in group by?
Следующее
От: "Charles Clavadetscher"
Дата:
Сообщение: Re: Ascii Elephant for text based protocols - Final function proposal