Re: BUG #16498: The master inserts data successfully when the standby stopped in synchronous stream replication

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16498: The master inserts data successfully when the standby stopped in synchronous stream replication
Дата
Msg-id 1550941.1592494812@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16498: The master inserts data successfully when the standby stopped in synchronous stream replication  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> [ $subject ]

I don't think this is a bug; you are just misunderstanding the guarantee
that synchronous replication offers.  In syncrep mode, the primary server
commits and then waits for some number of standbys to acknowledge having
replicated that commit action before it tells the client the commit is
complete.  Killing the primary during that wait does not, and cannot,
cause the commit not to have happened.

What I think you are looking for is two-phase commit, which is a whole
different animal that is far more complex and expensive than syncrep.

            regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match