Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILeI-0001IF-9z for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2014 17:18:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WILeH-0000QL-OB for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Feb 2014 17:18:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILeG-0000Oj-3j for pgsql-bugs@postgresql.org; Tue, 25 Feb 2014 17:18:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WILeE-0005Wi-1D for pgsql-bugs@postgresql.org; Tue, 25 Feb 2014 17:18:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s1PHIOKQ001180; Tue, 25 Feb 2014 12:18:24 -0500 From: Tom Lane To: Rainer Tammer cc: pgsql-bugs@postgresql.org, cbbrowne@gmail.com Subject: Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1 In-reply-to: <530CCD87.9080407@spg.schulergroup.com> References: <530B1EEC.1080402@spg.schulergroup.com> <8776.1393273299@sss.pgh.pa.us> <530C5312.3010508@spg.schulergroup.com> <32656.1393346132@sss.pgh.pa.us> <530CCD87.9080407@spg.schulergroup.com> Comments: In-reply-to Rainer Tammer message dated "Tue, 25 Feb 2014 18:06:15 +0100" Date: Tue, 25 Feb 2014 12:18:24 -0500 Message-ID: <1179.1393348704@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Rainer Tammer writes: > What code path is executed if the timeout passes and > the signal is send? Well, the general idea (pre 9.3) is that at the start of the statement, enable_sig_alarm calculates a future timeout instant and calls setitimer() to schedule a SIGALRM signal then. When the signal is delivered, CheckStatementTimeout should do kill(MyProcPid, SIGINT), which should lead to ProcessInterrupts calling ereport(ERROR), which will longjmp back to the process idle loop. We need to narrow down which of these steps is failing to happen before we can speculate much on what's wrong. There are scenarios in which the SIGINT handler proper won't think it's safe to call ProcessInterrupts immediately, but will just set a flag to make that happen later. That should not apply in these test cases, though. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs