Re: Can LISTEN/NOTIFY deal with more than 100 every second? - Mailing list pgsql-general

From Yeb Havinga
Subject Re: Can LISTEN/NOTIFY deal with more than 100 every second?
Date
Msg-id 4B66C655.1000504@gmail.com
Whole thread Raw
In response to Can LISTEN/NOTIFY deal with more than 100 every second?  (Gavin Mu <gavin.mu@gmail.com>)
Responses Re: Can LISTEN/NOTIFY deal with more than 100 every second?
List pgsql-general
Gavin Mu wrote:
> CREATE OR REPLACE RULE send_notify AS ON INSERT TO log DO ALSO NOTIFY logevent;
>
..
> when I use 3 similar programs to feed data, which means about 75
> events every second, I found that Postgres didn't send NOTIFY
> opportunely, since the client do SELECT query every several hundreds
> seconds, which is too long to be acceptable.
>
Hello Gavin,

The following might help from the notify docs:

"NOTIFY behaves like Unix signals in one important respect: if the same
notification name is signaled multiple times in quick succession,
recipients might get only one notification event for several executions
of NOTIFY."

So if your notify for instance could also add a unique number to the
notification name, then it will probably work as expected.

Regards,
Yeb Havinga



pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: How to test my new install
Next
From: "ray joseph"
Date:
Subject: Re: How to test my new install