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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>, 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 16:54:49
Message-ID: 200103061654.LAA09057@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian writes:
>
> > This will try a pg_ctl shutdown for 60 seconds, then kill pg_ctl. You
> > would then need a kill of you own.
>
> pg_ctl automatically times out after 60 seconds.

Oh, yea, that's right, I saw that in the documenation. Forget my
script. Just run pg_ctl first, then kill the postmaster if it is still
there. Much safer than doing kill and checking because pg_ctl knows
when the system cleanly shuts down and exits.

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-06 16:57:48 Re: How to shoot yourself in the foot: kill -9 postmaster
Previous Message Zeugswetter Andreas SB 2001-03-06 16:38:50 AW: AW: AW: WAL-based allocation of XIDs is insecure