Re: BUG #13671: pg_terminate_backend(pid) does not work

From: Andres Freund <andres(at)anarazel(dot)de>
To: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
Cc: oktogen(at)mail(dot)ru, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13671: pg_terminate_backend(pid) does not work
Date: 2015-10-09 13:36:36
Message-ID: 20151009133636.GA23742@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John Pruitt 2015-10-09 15:15:59 Re: BUG #13670: DST discrepancy between age() and subtraction for timestamptz arguments
Previous Message Haribabu Kommi 2015-10-09 08:56:16 Re: BUG #13671: pg_terminate_backend(pid) does not work