Synchronous Replication: Where is data visible first?

Поиск
Список
Период
Сортировка
От P C
Тема Synchronous Replication: Where is data visible first?
Дата
Msg-id CADrzpjH8A_bOVU4vTwtDanrCuE5wt63NRcJ5QGQZZeLmaBuOgQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Synchronous Replication: Where is data visible first?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin
Hello,

While discussing with the development team, an interesting question came up: in a synchronous streaming replication scenario, with synchronous_commit = remote_apply, will the change be first visible on Standby (replica)? Primary will wait till the change is applied and committed on standby, and hence logically this looks to be correct. But I couldn't find this mentioned explicitly anywhere and hence seeking comments from the community.

Assuming that the answer is yes, potentially the same can happen even with synchronous_commit = remote_write | ON because on the way back to Primary, if the network is slow, there is a chance that Standby may complete applying the change and make it visible to the users.

Would sincerely appreciate if someone can share a documentation/blog link that explains this, if there is one.

Many Thanks!

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

Предыдущее
От: Herman Anker
Дата:
Сообщение: Upgrade postgres 11 to 15 and postgis 2.5 to 3.3
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Synchronous Replication: Where is data visible first?