Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZkXqu-0006JX-Kq for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Oct 2015 13:36:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZkXqt-0003NN-Qh for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Oct 2015 13:36:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZkXqt-0003NG-9Z for pgsql-bugs@postgresql.org; Fri, 09 Oct 2015 13:36:51 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZkXqm-0001Nd-0e for pgsql-bugs@postgresql.org; Fri, 09 Oct 2015 13:36:50 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 8B617860003; Fri, 9 Oct 2015 15:36:42 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC4818.dip0.t-ipconnect.de [93.220.72.24]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 7197A860002; Fri, 9 Oct 2015 15:36:37 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 031171014A5; Fri, 9 Oct 2015 15:36:36 +0200 (CEST) Date: Fri, 9 Oct 2015 15:36:36 +0200 From: Andres Freund To: Haribabu Kommi Cc: oktogen@mail.ru, "pgsql-bugs@postgresql.org" Subject: Re: BUG #13671: pg_terminate_backend(pid) does not work Message-ID: <20151009133636.GA23742@awork2.anarazel.de> References: <20151009074334.1217.18732@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs