Re: notification payloads - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: notification payloads
Date
Msg-id 4608FBC7.8060402@dunslane.net
Whole thread Raw
In response to Re: notification payloads  (Hannu Krosing <hannu@skype.net>)
Responses Re: notification payloads
List pgsql-hackers

Hannu Krosing wrote:
> So perhaps it Alvaros proposal can be rephrased thus:
> "Why have the name on each message? The names are already stored in
> listen table, just reuse numeric identifier pointing to item in that
> table. That gives you room for a lot more messages."
>
> If there is no name in listen table, it means that nobody is interested
> and the message can be dropped right away.
>
>   

Er, what listen table? The only thing that will be in shared memory is a 
queue and some bookkeeping (queue head per backend). Each backend will 
be responsible for catching the notifications it is interested in and 
discarding the rest (see earlier discussion).

cheers

andrew


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: notification payloads
Next
From: Andrew Dunstan
Date:
Subject: Re: notification payloads