pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier
Date: Mon, 08 Feb 2016 23:43:20 +0000
Message-ID: <E1aSvSi-0003ki-Nw@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Temporarily make pg_ctl and server shutdown a whole lot chattier.

This is a quick hack, due to be reverted when its purpose has been served,
to try to gather information about why some of the buildfarm critters
regularly fail with "postmaster does not shut down" complaints.  Maybe they
are just really overloaded, but maybe something else is going on.  Hence,
instrument pg_ctl to print the current time when it starts waiting for
postmaster shutdown and when it gives up, and add a lot of logging of the
current time in the server's checkpoint and shutdown code paths.

No attempt has been made to make this pretty.  I'm not even totally sure
if it will build on Windows, but we'll soon find out.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3971f64843b02e4a55d854156bd53e46a0588e45

Modified Files
--------------
src/backend/access/transam/xlog.c   | 43 +++++++++++++++++++++++++++++++++++--
src/backend/postmaster/autovacuum.c |  3 ++-
src/backend/postmaster/postmaster.c |  9 +++++---
src/backend/storage/buffer/bufmgr.c | 13 +++++++++++
src/backend/utils/init/miscinit.c   | 28 ++++++++++++++++++++++++
src/bin/pg_ctl/pg_ctl.c             | 36 +++++++++++++++++++++++++++++--
src/include/miscadmin.h             |  1 +
7 files changed, 125 insertions(+), 8 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1aSvSi-0003ki-Nw@gemulon.postgresql.org>
Permalink:  ../E1aSvSi-0003ki-Nw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aSvSi-0003ki-Nw@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier
  In-Reply-To: <E1aSvSi-0003ki-Nw@gemulon.postgresql.org>
  References: <E1aSvSi-0003ki-Nw@gemulon.postgresql.org>

* 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