Re: WAL Info messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WAL Info messages
Дата
Msg-id 28858.1260802314@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WAL Info messages  (Greg Stark <gsstark@mit.edu>)
Ответы Re: WAL Info messages  (Simon Riggs <simon@2ndQuadrant.com>)
Re: WAL Info messages  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> What happens on the slave when normal NOTIFYs are generated on the
> master? IIRC NOTIFYs are wal-logged so I imagine LISTEN on the slave
> would just work and a plain old NOTIFY/LISTEN would suffice for this
> use case?

Nothing happens: NOTIFYs are *not* WAL-logged, and it would be quite
against the intended use-case to have them be.

If you're hoping that processes on the slave could LISTEN for events
happening on the master, we'd have a bit of a conflict.  This might be
an example of a case where we need that "are we doing HS" flag that
Simon insists we don't need.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: thread safety on clients
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: thread safety on clients