pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charles Hornberger <charlie@hss.caltech.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: postmaster dead but backends still running?
Date: Thu, 19 Jun 2003 11:17:01 -0700 (PDT)
Message-ID: <Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu> (raw)
In-Reply-To: <10023.1056044868@sss.pgh.pa.us>
References: <3EEF622C.4060908@hss.caltech.edu>
	<3EEF7AE1.9070909@hss.caltech.edu>
	<17715.1055893144@sss.pgh.pa.us>
	<Pine.LNX.4.53.0306191011140.3921@economex.caltech.edu>
	<10023.1056044868@sss.pgh.pa.us>

On Thu, 19 Jun 2003, Tom Lane wrote:

> Charles Hornberger <charlie@hss.caltech.edu> writes:
> > However, I think I know the cause (though I haven't tested to see if this
> > indeed causes the postmaster to die): A few hours before I noticed that
> > the postmaster was dead, one of the sysadmins made a typo that caused an
> > NFS mount to become unavailable -- the very NFS mount that held the
> > postgres executable (all our Solaris boxes share the same executables). So
> > the theory is that the postmaster tried to fork() a process using a
> > non-existent executable, and died as a result. Does this make any sense?
>
> A fork() failure would not cause the postmaster to die (it's not
> uncommon to see fork() failures due to resource limits, so this path is
> really pretty well tested).  I'm not familiar enough with Solaris to know
> whether other fatal error conditions might arise in this scenario.
> (I know HPUX gets rather unhappy if you try to delete an executable file
> or shared library that's in use by live processes...)  But the trouble
> with that line of thought is that the postmaster and the backends are
> all the same executable; if the postmaster went south because of loss of
> the executable file, I'd expect the backends not to survive it either.
> Unless maybe the backends weren't actually doing anything --- is it
> possible that the connected clients had issued no commands in the whole
> episode?
>

No, that's not possible; the backends that were up & running were
definitely in active use (serving a web site). Sorry I can't be of more
help -- I'm not familiar w/ Solaris, either. But if there are other places
I should look for error messages, I'm happy to go poking around ...

-Charlie



view thread (6+ messages)

Message-ID: <Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu>
Permalink:  ../Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu/
Also on:    postgresql.org/message-id/Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu

 · 

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: charlie@hss.caltech.edu, tgl@sss.pgh.pa.us
  Subject: Re: postmaster dead but backends still running?
  In-Reply-To: <Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu>
  References: <3EEF622C.4060908@hss.caltech.edu> <3EEF7AE1.9070909@hss.caltech.edu> <17715.1055893144@sss.pgh.pa.us> <Pine.LNX.4.53.0306191011140.3921@economex.caltech.edu> <10023.1056044868@sss.pgh.pa.us> <Pine.LNX.4.53.0306191103450.4042@economex.caltech.edu>

* 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