Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgHB5-00068B-PU for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 19:00:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgHB5-0001IJ-8u for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 19:00:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgHB4-0001IA-NJ for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 19:00:02 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZgHB1-0006oK-2N for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 19:00:01 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.11.242.182]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1B11C4004A2; Sun, 27 Sep 2015 11:59:53 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 696E3219A; Sun, 27 Sep 2015 15:59:49 -0300 (CLT) Date: Sun, 27 Sep 2015 15:59:49 -0300 From: Alvaro Herrera To: amir.rohan@mail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not? Message-ID: <20150927185949.GP295765@alvherre.pgsql> References: <20150926032021.3005.82023@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150926032021.3005.82023@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org amir.rohan@mail.com wrote: > postgres 2181 0.0 0.1 134468 9504 pts/0 T 03:34 0:00 /usr/local/pgsql/bin/postgres -D /home/local/pg/s1 > postgres 2183 0.0 0.0 134576 4168 ? Ss 03:34 0:00 postgres: checkpointer process > postgres 2184 0.0 0.0 134604 2844 ? Ss 03:34 0:00 postgres: writer process > postgres 2185 0.0 0.0 134468 2780 ? Ss 03:34 0:00 postgres: wal writer process > postgres 2186 0.0 0.0 0 0 ? Zs 03:34 0:00 [postgres] <<<<<<<<<<<<<<< dead process > postgres 2187 0.0 0.0 127300 2204 ? Ss 03:34 0:00 postgres: stats collector process > postgres 2193 0.0 0.0 118164 2696 pts/0 T 03:34 0:00 pg_basebackup -D /home/local/pg/backup -p 57833 --format=t -x > postgres 2194 0.0 0.0 134916 6016 ? Ss 03:34 0:00 postgres: wal sender process user1 [local] sending backup "pg_basebackup base backup" > > Not sure if this is a real problem or not, but it was my understanding that > pg panics when a subprocess dies for safety resons. A zombie process is a process that died and hasn't been collected by its parent process. In this case, postmaster is stopped ("T" above), so it cannot call wait() to collect the dead process. Once you signal postmaster to run again, it will either discover that the process died cleanly (and clean up state and all is well), or that it died uncleanly (in which case it will cause all other processes to stop). That postmaster is in STOPped mode is the issue here. That doesn't happen unless you take specific action to do that. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs