Re: LISTEN considered dangerous

From: Flemming Frandsen <ff(at)partyticket(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: LISTEN considered dangerous
Date: 2006-08-02 06:34:53
Message-ID: 44D0478D.3060201@partyticket.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> However, I'm unconvinced that the OP's complaint is valid.

I'm unconvinced that I've stated the problem clearly enough.

> I would still expect any
> reimplementation of notify messaging to honor the principle that a
> LISTEN doesn't take effect till you commit.

Naturally, the listen should not do anything at all when followed by a
rollback.

However if you start listening in a transaction then you should get all
events that have happened after the snapshot that the transaction
represents (the start of the transaction).

That means that events that happen after the start of the transaction
have to be returned in the next transaction.

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2006-08-02 06:58:00 Re: New variable server_version_num
Previous Message Flemming Frandsen 2006-08-02 06:25:45 Re: LISTEN considered dangerous