Skip site navigation (1) Skip section navigation (2)

Re: How to shoot yourself in the foot: kill -9 postmaster

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to shoot yourself in the foot: kill -9 postmaster
Date: 2001-03-06 01:52:13
Message-ID: 200103060152.UAA18122@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
killproc should send a kill -15 to the process, wait a few seconds for
it to exit.  If it does not, try kill -1, and if that doesn't kill it,
then kill -9.

> Tom Lane wrote:
> > checkpoint record.  Clueless admins who resort to kill -9 as a routine
> > admin tool *will* lose their databases.  Moreover, the init scripts
> > that are running around now are dangerous weapons if used with 7.1.
> 
> Thanks for the headsup, Tom.  Time to nix killproc and do something
> cleaner -- compatible, but cleaner.  I'll have to research what the
> defaults are for later RH's -- but, as 6.1 is one of my target platforms
> at this time, I have to fix that issue for sure.
> --
> Lamar Owen
> WGCR Internet Radio
> 1 Peter 4:11
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2001-03-06 01:52:40
Subject: Re: How to shoot yourself in the foot: kill -9 postmaster
Previous:From: Tom LaneDate: 2001-03-06 01:49:01
Subject: Re: How to shoot yourself in the foot: kill -9 postmaster

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group