Re: BUG #13671: pg_terminate_backend(pid) does not work - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #13671: pg_terminate_backend(pid) does not work
Date
Msg-id 20151009133636.GA23742@awork2.anarazel.de
Whole thread Raw
In response to Re: BUG #13671: pg_terminate_backend(pid) does not work  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Responses Re: BUG #13671: pg_terminate_backend(pid) does not work  (Haribabu Kommi <kommi.haribabu@gmail.com>)
List pgsql-bugs
On 2015-10-09 19:56:16 +1100, Haribabu Kommi wrote:
> Thanks for the bug report. This issue happens only for version 9.4 and below.
> In 9.5 and Head branches, because of the following commit, that introduces the
> wait logic in reading/writing from client, thus it detects the interrupts and
> terminates the backend. But in version 9.4 and below, the wait logic
> doesn't exist

> because of this reason, the backend is not terminated.
>
> commit - 80788a431e9bff06314a054109fdea66ac538199
> Simplify waiting logic in reading from / writing to client.

Are you sure that it is this commit? That's just unifying existing
logic between ssl/nossl, no?

> Similar fix is needed in the back branches. Comments?

I don't think we easily can - the whole interrupt/signal handling
overhaul was quite invasive.

Greetings,

Andres Freund

pgsql-bugs by date:

Previous
From: Haribabu Kommi
Date:
Subject: Re: BUG #13671: pg_terminate_backend(pid) does not work
Next
From: John Pruitt
Date:
Subject: Re: BUG #13670: DST discrepancy between age() and subtraction for timestamptz arguments