From: | Steve Atkins <steve(at)blighty(dot)com> |
---|---|
To: | PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Listen / Notify rewrite |
Date: | 2009-11-13 03:45:30 |
Message-ID: | 9C52782E-32CC-4270-B93E-1E1EB4E73CEF@blighty.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Nov 12, 2009, at 5:57 PM, Robert Haas wrote:
> On Thu, Nov 12, 2009 at 8:44 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>> On 11/12/09 8:30 AM, Tom Lane wrote:
>>> So while a payload string for NOTIFY has been on the to-do list since
>>> forever, I have to think that Greg's got a good point questioning
>>> whether it is actually a good idea.
>>
>> Sure, people will abuse it as a queue. But people abuse arrays when
>> they should be using child tables, use composite types to make data
>> non-atomic, and use dblink when they really should be using schema.
>> Does the potential for misuse mean that we should drop the features? No.
>
> I agree. We frequently reject features on the basis that someone
> might do something stupid with them. It's lame and counterproductive,
> and we should stop. The world contains infinite amounts of lameness,
> but that's the world's problem, not ours. There is zero evidence that
> this feature is only useful for stupid purposes, and some evidence
> (namely, the opinions of esteemed community members) that it is useful
> for at least some non-stupid purposes.
Speaking as a consumer of this feature, my (mild) concern is not that by
adding functionality it will make it possible to do new things badly, it's that
it might make it harder (or impossible) to do currently supported things as well.
I like the current notify. It's a good match for handling table based
queues or for app-level-cache invalidation. Any changes that make
it less good at that would be a step backwards. The more complex
and flexible and "heavier" the changes, the more that concerns me.
(Though a small payload - I'd settle for at least an integer - would be
convenient, to allow invalidation of 20 different caches without needing
20 different LISTENs).
Cheers,
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | KaiGai Kohei | 2009-11-13 03:46:57 | Re: TRIGGER with WHEN clause |
Previous Message | Pavel Stehule | 2009-11-13 03:39:05 | Re: actualised funcs typmod patch |