pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier
Date: 2016-02-08 23:43:20
Message-ID: E1aSvSi-0003ki-Nw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-02-09 16:21:52 pgsql: Add more chattiness in server shutdown.
Previous Message Andrew Dunstan 2016-02-08 21:50:42 Re: Michael Paquier