pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 11:35:32 -0500
Message-ID: <32656.1393346132@sss.pgh.pa.us> (raw)
In-Reply-To: <530C5312.3010508@spg.schulergroup.com>
References: <530B1EEC.1080402@spg.schulergroup.com>
	<8776.1393273299@sss.pgh.pa.us>
	<530C5312.3010508@spg.schulergroup.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Rainer Tammer <pgsql@spg.schulergroup.com> writes:
> 1. fast shutdown

> The unexpected  "LOG: received fast shutdown request" is happening
> on an installed instance. I have found other articles on the WEB which
> describe the same problem (other platform) - unfortunately there was
> no real solution to it.

As far as we can tell, any SIGINT of the postmaster must be coming from
outside the Postgres code.  There are several places where SIGINT is
generated internally, but I've just been through all of them again and
it's pretty nearly impossible to believe that they could target the
postmaster process rather than some child process.  If you've got a
way to instrument it and find out where the signal came from (eg what
PID sent it), that would be interesting information.

> 2. hang during make check

> PostgreSQL 8.4.20 -> make check does finish without hang
> PostgreSQL 9.0.16 -> hang
> PostgreSQL 9.2.7 -> hang

Interesting, since AFAIR there was no major surgery on the timeout
code in 9.0.  If you'd said 9.3 broke it, that wouldn't be so
surprising ...

> As far as I can see the hang is caused by the "set statement_timeout to
> 2000;"
> statement. Where would be a good start point to diagnose this problem??

Well, the point is that the timeout is failing to happen.  Is the SIGALRM
signal being blocked?  If it is delivered, why doesn't that spring the
process off its wait?  Anyway, I see you already found enable_sig_alarm
and CheckStatementTimeout, so those are reasonable places to start
injecting some additional logging.  You might also need to instrument
the backend SIGINT handler, StatementCancelHandler in postgres.c.

			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



view thread (44+ messages)  latest in thread

Message-ID: <32656.1393346132@sss.pgh.pa.us>
Permalink:  ../32656.1393346132@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32656.1393346132@sss.pgh.pa.us

 · 

reply

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: <32656.1393346132@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>

* 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