Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 375D411DF228 for ; Thu, 31 May 2012 19:53:33 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SaEFG-0005YR-SD for pgsql-bugs@postgresql.org; Thu, 31 May 2012 22:53:32 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4VMrHwF023489; Thu, 31 May 2012 18:53:17 -0400 (EDT) To: edward@heroku.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6671: Killed restore command causes postmaster to exit In-reply-to: References: Comments: In-reply-to edward@heroku.com message dated "Thu, 31 May 2012 18:56:13 -0000" Date: Thu, 31 May 2012 18:53:17 -0400 Message-ID: <23488.1338504797@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/250 X-Sequence-Number: 33221 edward@heroku.com writes: > We have this thing where we kill the restore command sometimes, to ensure > it's not stuck. Um, what makes you think that's a good idea? > This has rarely led to postmaster dying afterwards instead of retrying. "Rarely"? As I read the code, it will happen every single time. Failure of the restore process is a failure, we do not retry. (The general theory is that if you think you need retries, you should code the restore_command to handle that.) regards, tom lane