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@svana.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.