pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier
Date
Msg-id E1aSvSi-0003ki-Nw@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Michael Paquier
Next
From: Tom Lane
Date:
Subject: pgsql: Add more chattiness in server shutdown.