Re: Synchronous Log Shipping Replication

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Synchronous Log Shipping Replication
Дата
Msg-id 20080909150449.7BE1.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Synchronous Log Shipping Replication  ("Fujii Masao" <masao.fujii@gmail.com>)
Список pgsql-hackers
"Fujii Masao" <masao.fujii@gmail.com> wrote:

> 3) Patch of introducing new background process which I've called
>      WALSender. It takes charge of sending WAL to the slave.
> 
>      Now, I assume that WALSender also listens the connection from
>      the slave, i.e. only one sender process manages multiple slaves.

>      The relation between WALSender and backend is 1:1. So,
>      the communication mechanism between them can be simple.

I assume that he says only one backend communicates with WAL sender
at a time. The communication is done during WALWriteLock is held,
so other backends wait for the communicating backend on WALWriteLock.
WAL sender only needs to send one signal for each time it sends WAL
buffers to slave.

We could be split the LWLock to WALWriterLock and WALSenderLock,
but the essential point is same.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: Re: Verbosity of Function Return Type Checks
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Common Table Expressions (WITH RECURSIVE) patch