Re: NOTIFY/LISTEN on read-only slave?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NOTIFY/LISTEN on read-only slave?
Дата
Msg-id 28517.1266463406@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: NOTIFY/LISTEN on read-only slave?  (Greg Smith <greg@2ndquadrant.com>)
Ответы Re: NOTIFY/LISTEN on read-only slave?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Greg Smith <greg@2ndquadrant.com> writes:
> What's the actual reason for the restriction then?

Well, NOTIFY doesn't seem very sensible for a read-only slave to
execute: it can't change the database state so there's nothing for
it to notify about.  Ideally we should allow slave sessions to LISTEN
to notify events that were generated on the master, though.  The recent
patch eliminates the major impediments to doing that, but we're still
shy of some infrastructure to do it --- mainly, some code to push
notify events through the WAL stream.  (Presumably this would have to be
something you could enable or disable, because WAL-logging notifies
on a machine that wasn't an HS master would be a large and very useless
performance overhead.)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: auto_explain causes regression failures
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: NOTIFY/LISTEN on read-only slave?