From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Oliver Jowett <oliver(at)opencloud(dot)com>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Statement.cancel() may cancel queries in the future |
Date: | 2003-09-27 16:53:01 |
Message-ID: | 200309271653.h8RGr1w12330@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Is this something for 7.5?
---------------------------------------------------------------------------
Tom Lane wrote:
> Oliver Jowett <oliver(at)opencloud(dot)com> writes:
> > On Mon, Sep 15, 2003 at 12:01:47PM -0400, Tom Lane wrote:
> >> You could make things a lot closer to
> >> synchronous if you wait for the postmaster to drop the connection,
> >> instead. That would guarantee that the postmaster has completed
> >> executing kill(). I suppose actual delivery of the signal to the
> >> backend might not have happened yet, but it's hard to believe that
> >> it could be postponed past the backend's next successful execution of
> >> recv().
>
> > That sounds reasonable. I'll put together a patch to do that.
>
> It looks like libpq has the same issue, as PQrequestCancel() does not
> wait around for the postmaster to drop the connection. Anyone want
> to fix that?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-09-27 17:00:59 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Previous Message | Bruce Momjian | 2003-09-27 16:34:54 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |