Re: write ahead logging in standby (streaming replication)

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: write ahead logging in standby (streaming replication)
Дата
Msg-id 407d949e0911121854ob2a7b5v92dd983f23b65cc@mail.gmail.com
обсуждение исходный текст
Ответ на Re: write ahead logging in standby (streaming replication)  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: write ahead logging in standby (streaming replication)
Re: write ahead logging in standby (streaming replication)
Список pgsql-hackers
On Fri, Nov 13, 2009 at 2:37 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
> Umm... what is your definition of "synchronous"? I'm planning to provide
> four synchronization modes as follows, for v8.5. Does this fit in your

I think my definition would be that a query against the replica will
produce the same result as a query against the master -- and that that
will be the case even after a system failure. That might not
necessarily mean that the log entry is fsynced on the replica, only
that it's fsynced in a location where the replica will have access to
it when it runs recovery.

I do have a different question though. What do you plan to do if
there's a failure when they're out of sync? The master hasn't
responded to the commit yet because it's still waiting on the replica
to respond but it has already recorded the commit itself. When it
comes back up it's out of sync with the replica and has to resend
those records? What if the replica has already received it and it was
the confirmation which was lost?

-- 
greg


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: EOL for 7.4?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: next CommitFest