Re: New sync commit mode remote_write

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: New sync commit mode remote_write
Дата
Msg-id CAHGQGwEtQogo=03yoZVDQE5bWWL86X3vG0EURL8e0A_8XZruRA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: New sync commit mode remote_write  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: New sync commit mode remote_write  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Sat, Apr 21, 2012 at 12:20 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> On Thu, Apr 19, 2012 at 7:50 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> On 4/19/12, Jeff Janes <jeff.janes@gmail.com> wrote:
>>> The work around would be for the master to refuse to automatically
>>> restart after a crash, insisting on a fail-over instead (or a manual
>>> forcing of recovery)?
>>
>> I suppose that would work, but I think Simon's idea is better: don't
>> let the slave replay the WAL until either (a) it's promoted or (b) the
>> master finishes the fsync.   That boils down to adding some more
>> handshaking to the replication protocol, I think.
>
> It would be 8 bytes on every data message sent to the standby.

There seems to be another problem to solve. In current design of streaming
replication, we cannot send any WAL records before writing them locally.
Which would mess up the mode which makes a transaction wait for remote
write but not local one. We should change walsender so that it can send
WAL records before they are written, e.g., send from wal_buffers?

Regards,

--
Fujii Masao


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Plan stability versus near-exact ties in cost estimates
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: RANGE type, and its subtype parameter