pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: auto removing stale pid for postmaster NT service
Date: Tue, 17 Sep 2002 10:27:26 -0400
Message-ID: <20020917102726.D27778@mail.libertyrms.com> (raw)
In-Reply-To: <2208.1032211658@sss.pgh.pa.us>
References: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com>
	<26090.1032182629@sss.pgh.pa.us>
	<20020916165546.9B98.TELLINI@areabusiness.it>
	<20020916164129.W4394@mail.libertyrms.com>
	<2208.1032211658@sss.pgh.pa.us>

On Mon, Sep 16, 2002 at 05:27:38PM -0400, Tom Lane wrote:

> FYI, sendmail has the same restart failure mode; I imagine a lot of
> other Unix daemons do too.

Yes, as far as I know atd, klogd, and ypbind also fail this way, at
least on some flavours of Linux (where I've had it happen).  And ISTR
that some bit of NFS didn't recover correctly under Solaris 2.6, but
I can't recall for sure now.

> It wasn't yet, mainly because it's not obvious how to tell reliably
> whether some other process is a postmaster or not.

I had a feeling this might be the case.  I think the suggestion of a
boot-time "cleaning script" is a good idea -- something run by root
before switching runlevels is the obvious answer -- but that's the
sort of thing that probably should be hand-crafted by a competent
sysadmin for each case.  In some environments, there are good reasons
not to restart things in case of crash.  (If the hardware is flakey,
for instance, you might not want the service to be going up and
down.)

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (7+ messages)

Message-ID: <20020917102726.D27778@mail.libertyrms.com>
Permalink:  ../20020917102726.D27778@mail.libertyrms.com/
Also on:    postgresql.org/message-id/20020917102726.D27778@mail.libertyrms.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: auto removing stale pid for postmaster NT service
  In-Reply-To: <20020917102726.D27778@mail.libertyrms.com>
  References: <OFB91CFC47.33257F49-ON85256C31.00654C8C@putnaminv.com> <26090.1032182629@sss.pgh.pa.us> <20020916165546.9B98.TELLINI@areabusiness.it> <20020916164129.W4394@mail.libertyrms.com> <2208.1032211658@sss.pgh.pa.us> <20020917102726.D27778@mail.libertyrms.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox