Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzkO1-0004Yg-2W for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Sep 2018 15:15:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzkNz-0000Rx-GO for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Sep 2018 15:15:27 +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.89) (envelope-from ) id 1fzkNz-0000Rk-5l for pgsql-hackers@lists.postgresql.org; Tue, 11 Sep 2018 15:15:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzkNw-0007M1-Sa for pgsql-hackers@lists.postgresql.org; Tue, 11 Sep 2018 15:15:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8BFFLvc025444; Tue, 11 Sep 2018 11:15:21 -0400 From: Tom Lane To: Robert Haas cc: Simon Riggs , Jeff Janes , PostgreSQL Hackers Subject: Re: StandbyAcquireAccessExclusiveLock doesn't necessarily In-reply-to: References: <6202.1536359835@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 11 Sep 2018 10:53:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25442.1536678921.1@sss.pgh.pa.us> Date: Tue, 11 Sep 2018 11:15:21 -0400 Message-ID: <25443.1536678921@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Tue, Sep 11, 2018 at 5:54 AM, Simon Riggs wrote: >> Please explain why you think that would be with no restart. > Because the startup process will die, and if that happens, IIRC, > there's no crash-and-restart loop. You're just done. Unless we think that the startup process will never never ever throw an error, that might be a behavior that needs discussion in itself. Obviously an infinite crash-and-restart loop would be bad, but perhaps the postmaster could have logic that would allow restarting the startup process some small number of times. I think the hard part would be in deciding whether a previous restart had succeeded (ie made progress beyond the prior crash point), so that it should no longer count against the retry limit. regards, tom lane