Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIZnP-0005uV-Iu for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Feb 2014 08:24:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WIZnP-00015A-2e for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Feb 2014 08:24:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIZnO-000153-2d for pgsql-bugs@postgresql.org; Wed, 26 Feb 2014 08:24:50 +0000 Received: from mgate01.schulergroup.com ([212.87.143.250]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIZnL-0005D4-JR for pgsql-bugs@postgresql.org; Wed, 26 Feb 2014 08:24:49 +0000 X-IronPort-AV: E=Sophos;i="4.97,546,1389740400"; d="scan'208";a="4573624" Received: from ifw.schulergroup.com ([212.87.143.254]) by mgate01.schulergroup.com with ESMTP; 26 Feb 2014 09:24:47 +0100 Received: from saturn.schuler.de (saturn.schuler.de [153.3.1.198]) by ifw.schulergroup.com (Postfix) with ESMTP id 47BCDD03038A; Wed, 26 Feb 2014 09:24:46 +0100 (CET) Received: from [153.3.21.70] (rt01.schuler.de [153.3.21.70]) by saturn.schuler.de (8.12.11.20060308/8.12.7/SuSE Linux 0.6) with ESMTP id s1Q8OjY2002407; Wed, 26 Feb 2014 09:24:46 +0100 Message-ID: <530DA4D3.5090001@spg.schulergroup.com> Date: Wed, 26 Feb 2014 09:24:51 +0100 From: Rainer Tammer Organization: Schuler Pressen GmbH & Co. KG User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Tom Lane Cc: pgsql-bugs@postgresql.org, cbbrowne@gmail.com Subject: Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1 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> <1179.1393348704@sss.pgh.pa.us> <530CD7C3.3090401@spg.schulergroup.com> <3853.1393352791@sss.pgh.pa.us> <530CE86B.6090000@spg.schulergroup.com> <14679.1393356559@sss.pgh.pa.us> In-Reply-To: <14679.1393356559@sss.pgh.pa.us> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new 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 Hello, OK, at least the first stage is working... src/backend/storage/lmgr/proc.c ... static bool CheckStatementTimeout(void) { TimestampTz now; if (!statement_timeout_active) return true; /* do nothing if not active */ elog(FATAL, "enter: CheckStatementTimeout - after statement_timeout_active check"); now = GetCurrentTimestamp(); ... gmake check: prepared_xacts.out ... -- pxtest3 should be locked because of the pending DROP set statement_timeout to 2000; SELECT * FROM pxtest3; FATAL: enter: CheckStatementTimeout - after statement_timeout_active check LINE 1: SELECT * FROM pxtest3; ^ FATAL: enter: CheckStatementTimeout - after statement_timeout_active check FATAL: enter: CheckStatementTimeout - after statement_timeout_active check LINE 1: SELECT * FROM pxtest3; ^ FATAL: enter: CheckStatementTimeout - after statement_timeout_active check connection to server was lost .... Now I have put the output in CheckStatementTimeout: src/backend/storage/lmgr/proc.c ... static bool CheckStatementTimeout(void) { TimestampTz now; if (!statement_timeout_active) return true; /* do nothing if not active */ now = GetCurrentTimestamp(); if (now >= statement_fin_time) { /* Time to die */ statement_timeout_active = false; cancel_from_timeout = true; elog(FATAL, "enter: CheckStatementTimeout - next statement send kill"); #ifdef HAVE_SETSID /* try to signal whole process group */ kill(-MyProcPid, SIGINT); #endif kill(MyProcPid, SIGINT); } ... gmake check: prepared_xacts.out ... -- pxtest3 should be locked because of the pending DROP set statement_timeout to 2000; SELECT * FROM pxtest3; FATAL: enter: CheckStatementTimeout - next statement send kill LINE 1: SELECT * FROM pxtest3; ^ FATAL: enter: CheckStatementTimeout - next statement send kill LINE 1: SELECT * FROM pxtest3; ^ connection to server was lost So the next thing should be that the backend process (the one hanging in the SELECT) should receive the SIGINT - correct? Bye Rainer On 25.02.2014 20:29, Tom Lane wrote: > Rainer Tammer writes: >> There is a pg_sema.c in src/backend/port. >> This is linked ti sysv_sema.c, there is also a posix_sema.c. >> How do you select the one or the other? > The configure script chooses which to use for a particular platform. > > Perhaps it should be making a different choice for AIX? > > 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