X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 2911830EACF for ; Thu, 19 Jun 2003 17:48:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 95967-06 for ; Thu, 19 Jun 2003 14:47:51 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id EA66330EACB for ; Thu, 19 Jun 2003 14:47:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5JHlmU6010024; Thu, 19 Jun 2003 13:47:48 -0400 (EDT) To: Charles Hornberger Cc: pgsql-admin@postgresql.org Subject: Re: postmaster dead but backends still running? In-reply-to: References: <3EEF622C.4060908@hss.caltech.edu> <3EEF7AE1.9070909@hss.caltech.edu> <17715.1055893144@sss.pgh.pa.us> Comments: In-reply-to Charles Hornberger message dated "Thu, 19 Jun 2003 10:22:47 -0700" Date: Thu, 19 Jun 2003 13:47:48 -0400 Message-ID: <10023.1056044868@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/267 X-Sequence-Number: 9258 Charles Hornberger 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? regards, tom lane