Re: LISTEN considered dangerous

From: Flemming Frandsen <ff(at)partyticket(dot)net>
To: harding(dot)ian(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LISTEN considered dangerous
Date: 2006-08-02 05:57:55
Message-ID: 44D03EE3.8010406@partyticket.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ian Harding wrote:
> NOTIFY interacts with SQL transactions in some important ways.
> Firstly, if a NOTIFY is executed inside a transaction, the notify
> events are not delivered until and unless the transaction is
> committed. This is appropriate, since if the transaction is aborted,
> all the commands within it have had no effect, including NOTIFY. But
> it can be disconcerting if one is expecting the notification events to
> be delivered immediately.

Yes, that's very nice, but it doesn't have *anything* to do with what I
posted about.

I'm bothered by listen listening from the end of the transaction in
stead of the start of the transaction.

--
Regards Flemming Frandsen - http://dion.swamp.dk - YAPH

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-08-02 06:07:26 Re: LISTEN considered dangerous
Previous Message Martijn van Oosterhout 2006-08-02 05:45:28 Re: LISTEN considered dangerous