From: | Alvaro Herrera <alvherre(at)surnet(dot)cl> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andras Kadinger <bandit(at)surfnonstop(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: implementing NOTIFY with message parameter |
Date: | 2005-05-12 14:21:13 |
Message-ID: | 20050512142113.GA7325@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, May 12, 2005 at 10:09:23AM -0400, Tom Lane wrote:
> Andras Kadinger <bandit(at)surfnonstop(dot)com> writes:
> > ... I therefore invented pg_notify:
>
> Please review the archived discussions about reimplementing NOTIFY using
> only shared memory, no tables.
Maybe this can be done using two SLRU areas like we did for multixact.
Notifiers create entries, listeners destroy them. Unsolved questions
are how would the listeners know that messages were for them, when would
messages be destroyed if they are multi-recipient, and what performance
issues there are with this approach.
This hammer of mine ... nails, more nails!
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"Oh, great altar of passive entertainment, bestow upon me thy discordant images
at such speed as to render linear thought impossible" (Calvin a la TV)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-05-12 14:24:23 | Re: Server instrumentation for 8.1 |
Previous Message | Andrew Dunstan | 2005-05-12 14:11:05 | Re: New Contrib Build? |