From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rainer Tammer <pgsql@spg.schulergroup.com>
Cc: pgsql-bugs@postgresql.org
Cc: cbbrowne@gmail.com
Subject: Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1
Date: Tue, 25 Feb 2014 12:18:24 -0500
Message-ID: <1179.1393348704@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Rainer Tammer <pgsql@spg.schulergroup.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql@spg.schulergroup.com, cbbrowne@gmail.com
Subject: Re: Problem with PostgreSQL 9.2.7 and make check on AIX 7.1
In-Reply-To: <1179.1393348704@sss.pgh.pa.us>
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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox