Re: pgsql: Use a latch to make startup process wake up and replay

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pgsql: Use a latch to make startup process wake up and replay
Дата
Msg-id AANLkTin-Gm9MB3N1T=CgyQ+BbY9Dx=u3-OUuietwvARN@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Use a latch to make startup process wake up and replay  (heikki@postgresql.org (Heikki Linnakangas))
Ответы Re: pgsql: Use a latch to make startup process wake up and replay  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-committers
On Wed, Sep 15, 2010 at 7:35 PM, Heikki Linnakangas
<heikki@postgresql.org> wrote:
> Log Message:
> -----------
> Use a latch to make startup process wake up and replay immediately when
> new WAL arrives via streaming replication. This reduces the latency, and
> also allows us to use a longer polling interval, which is good for energy
> efficiency.
>
> We still need to poll to check for the appearance of a trigger file, but
> the interval is now 5 seconds (instead of 100ms), like when waiting for
> a new WAL segment to appear in WAL archive.

Good work!

+     /*
+      * Take ownership of the wakup latch if we're going to sleep during
+      * recovery.
+      */

I found a typo: s/wakup/wakeup/

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

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

Предыдущее
От: heikki@postgresql.org (Heikki Linnakangas)
Дата:
Сообщение: pgsql: Use a latch to make startup process wake up and replay
Следующее
От: Thom Brown
Дата:
Сообщение: Re: pgsql: Use a latch to make startup process wake up and replay