Re: [WIP] Double-write with Fast Checksums

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [WIP] Double-write with Fast Checksums
Дата
Msg-id CA+U5nMLzbd6ZSZ95MaPwrdAmJyYVP3HmhX47+R=WL8Vp_KtN7Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [WIP] Double-write with Fast Checksums  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jan 12, 2012 at 12:09 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> On Wed, Jan 11, 2012 at 11:07 PM, Josh Berkus <josh@agliodbs.com> wrote:
>>> On 1/11/12 1:25 PM, Dan Scales wrote:
>>>> And just wanted to reiterate one other benefit of double writes -- it greatly reduces the size of the WAL logs.
>
>>> Even if you're replicating?
>
>> Yes, but it will increase random I/O on the standby when we replay if
>> we don't have FPWs.
>
> The question is how you prevent torn pages when a slave server crashes
> during replay.  Right now, the presence of FPIs in the WAL stream,
> together with the requirement that replay restart from a checkpoint,
> is sufficient to guarantee that any torn pages will be fixed up.  If
> you remove FPIs from WAL and don't transmit some substitute information,
> ISTM you've lost protection against slave server crashes.

Sure, you need either FPW or DW to protect you. Whatever is used on
the primary must also be used on the standbys.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.