Re: hung postmaster?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: hung postmaster?
Date: 2005-02-16 22:38:48
Message-ID: 20050216223828.GE6487@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 16, 2005 at 11:41:35AM -0700, Ed L. wrote:
> Question: Am I doing all I can to avoid corruption with the
> following procedure to shutdown a 7.4.6 cluster with a hung
> postmaster? Suggestions?

What is the state of the processes in ps? D, S, R, ?? That should at
least give a hint as to what it *is* doing...

> 1. SIGTERM non-postmaster processes
> 2. SIGINT non-postmasters
> 3. SIGQUIT non-postmaster
> 4. SIGTERM postmaster
> 5. SIGINT postmaster
> 6. SIGQUIT postmaster
> 7. SIGKILL postmaster

The options you can give to pg_ctl should cover all the
possibilities... There's also a page in the docs as to what each
process does with each signal...

Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2005-02-16 22:56:04 Re: Schema comparison tool
Previous Message Ian Harding 2005-02-16 22:29:24 Re: Schema comparison tool