Re: UNLISTEN bug

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: UNLISTEN bug
Date: 2010-09-22 17:06:35
Message-ID: 201009221706.o8MH6Zv10133@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian wrote:
> Jeff Davis wrote:
> > In honor of the very first bug report I sent to postgresql more than 10
> > years ago regarding UNLISTEN[1], I have decided to submit another
> > UNLISTEN bug (against HEAD):
> >
> > Session1:
> >
> > LISTEN foo;
> > BEGIN;
> > UNLISTEN foo;
> >
> > Session2:
> >
> > NOTIFY foo;
> >
> > Session1:
> >
> > SELECT 1;
> > COMMIT;
> > SELECT 1;
> >
> > I seem to recall testing out similar situations during my review of this
> > patch, but I think the code has changed since that time.
>
> So the problem report is? I tested it and the problem is that the final
> SELECT 1 hung. Is that the problem?

To confirm, it was majorly hung. Cancel and kill did not work, pg_ctl
-m fast did not work either. I had to kill -3. Bad. :-(

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2010-09-22 17:28:51 Re: BUG #5669: server process was terminated by exception 0xC0000005
Previous Message Bruce Momjian 2010-09-22 17:04:50 Re: UNLISTEN bug