Re: [GENERAL] NOTIFY command impact - Mailing list pgsql-general

From François Beaulieu
Subject Re: [GENERAL] NOTIFY command impact
Date
Msg-id 9880ADDE-8F2F-4F90-85B1-7270A3D94A50@sbktelecom.com
Whole thread Raw
In response to [GENERAL] NOTIFY command impact  (Rob Brucks <rob.brucks@rackspace.com>)
List pgsql-general
> On Feb 21, 2017, at 6:03 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Rob Brucks <rob.brucks@rackspace.com> 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
>

Are we sure that replication slaves can have listeners? When I tried it on 9.4.10, I got the following message:

"ERROR: cannot execute LISTEN during recovery"

-=Frank

pgsql-general by date:

Previous
From: François Beaulieu
Date:
Subject: Re: [GENERAL] NOTIFY command impact
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] bloat indexes - opinion