Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgIpi-0002A1-G5 for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 20:46:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgIph-0000N8-Sj for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 20:46:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgIph-0000L8-21 for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 20:46:05 +0000 Received: from mout.gmx.com ([74.208.4.200]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZgIpd-0000Aa-Sy for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 20:46:04 +0000 Received: from anaphora.localdomain ([5.102.233.80]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MFuSG-1ZvAPr1CKs-00EsbN; Sun, 27 Sep 2015 22:45:57 +0200 Subject: Re: BUG #13643: Should a process dying bring postgresql down, or not? To: Alvaro Herrera References: <20150926032021.3005.82023@wrigleys.postgresql.org> <20150927185949.GP295765@alvherre.pgsql> Cc: pgsql-bugs@postgresql.org From: Amir Rohan Message-ID: <56085581.1000105@mail.com> Date: Sun, 27 Sep 2015 23:45:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150927185949.GP295765@alvherre.pgsql> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fhk2F372xkfTJnzCJhuVBIkWrJIPwW1R64goaPGvD5JkPePhJl1 xflB2kkoV88WZDetABh/dk8mgQglsh2nEMhhQzYPJeJRd1bqfHpTh/ZLz5j9VU7CxG6+VB6 Nt4UkG6PYL15a7hSmJYbi2NrBqkr+g00K9OdiddJfAsxfHGq0p7meo2vDfh6wwAbNddiEoo GwAqlDjrVfSNHUCo41ZCQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:h5/VAiI9lTI=:7fUnlflI1WwU12PZh2Bkyw YArT7pdn/wiBkyPuGt92Scnimra9+nszz+zuWlm2BgGswpmJdhNMd0Dhd7itHj9nda+h1zOOc iqpEiJPGl545kjnlE2Mq9fF7E2UmMXVhHopQBL87Z4TSJnZyEweL2dVc6BmvxXdoBd7SIxErI 2mxDhl9JVHTgUWWOCqdB+dZQj2iVTBXoCy6eLPhc7r5mdYFF5Tkb074pfv+AWvLARwmti1xWd sXqdzzkJvkviR4GPyjewDwgJ/1c8vL61gWZYcWEScCyYP++lCFRE8aYGosHHNRQD07R94d+Vt idLlBgLzKH2UEsBQmjM7dlVyoDfaL4ydAtmO6k9103VXEZHo6djxFMVDlIlNPWnJctaq6k2LF DlWXIbV+b7Ut/xj37hrPmEXlZgmh1g3OzS3M0lUlVunj18353TvRa83NBzeiv/P8eSV97KVsj cqNfOa8z1Uh9DUwzedO4VlKT7YMzdoA3vcfPePjtj3qKN6sNGv1KCceHLMHtQI8g07LNg3xgj zuCeSySECrDRBQJb2gTYLSOKi3uBs1e2735IInEHM1TuWlBVPKXRQti3R9nvtJJHUDNYUtLV9 8hXKnmi04AkEY5guYzH4YUAYfdCuqeKGUdxINRdLcD+tV/nYCPMz7utVD2nRzx4cyW0qPLFFt tv7T0dJo7Jw4uMk5WPLvQg2m36pCt8Rn7AG7KrGdLJEZWBibLV1VZgg2pnMhFQKqUp/JeSg5h /NFArzGFb99EuVV2OAM4DhlUOhLpmSqFQVN5ZA== 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 On 09/27/2015 09:59 PM, Alvaro Herrera wrote: > 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" > > That postmaster is in STOPped mode is the issue here. That doesn't > happen unless you take specific action to do that. > I hadn't noticed that. That looks like I suspended pg_ctl during start, but with the backup in progress already, it's not clear how I managed that state. There was no kill -SIGSTOP involved... After killing some subprocesses in random I do see postgres restarting the whole group once one goes down, if/once its running/unsuspended. Excuse the noise. Amir -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs