|From:||Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>|
|Subject:||pgsql: Temporarily make pg_ctl and server shutdown a whole lot chattier|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
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.
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(-)
|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|