Re: [GENERAL] NOTIFY command impact
От
Rob Brucks
Тема
Re: [GENERAL] NOTIFY command impact
Дата
Msg-id
EFC0E80C-510A-42A1-B6E3-D55DE3D9389A@rackspace.com
Ответ на
Re: [GENERAL] NOTIFY command impact (Tom Lane)
Список
Дерево обсуждения
[GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
[GENERAL] Wired-Protocol Specification? Ozz Nixon <ozznixon@gmail.com>
Re: [GENERAL] Wired-Protocol Specification? Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] Wired-Protocol Specification? John R Pierce <pierce@hogranch.com>
Re: [GENERAL] NOTIFY command impact Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
Re: [GENERAL] NOTIFY command impact "David G. Johnston" <david.g.johnston@gmail.com>
Re: [GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
Re: [GENERAL] NOTIFY command impact Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
Re: [GENERAL] NOTIFY command impact Adrian Klaver <adrian.klaver@aklaver.com>
Re: [GENERAL] NOTIFY command impact "David G. Johnston" <david.g.johnston@gmail.com>
Re: [GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
Re: [GENERAL] NOTIFY command impact Tom Lane <tgl@sss.pgh.pa.us>
Re: [GENERAL] NOTIFY command impact Rob Brucks <rob.brucks@rackspace.com>
Re: [GENERAL] NOTIFY command impact "David G. Johnston" <david.g.johnston@gmail.com>
Thanks Tom,
Can you answer my original question too:
If I am issuing NOTIFY commands every 30 seconds (and immediately committing) and there are no listeners, will that have a negative impact on the cluster?
I'm using the NOTIFY to force streaming replication to update the "pg_last_xact_replay_timestamp" on the slaves so we can more accurately monitor replication lag on quiet systems.
Thanks,
Rob
On 2/21/17, 5:03 PM, "Tom Lane" wrote:
Rob Brucks writes:
> If a notify is sent and then PG is immediately shut down, wouldn't PG want to save that message for processing after startup?
> Or is the message just discarded?
NOTIFY data is not saved across a shutdown or crash.
(The reason it goes into the WAL stream is so that you can have listeners
on replication slaves, not for recovery purposes.)
regards, tom lane
В списке pgsql-general по дате отправления