Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beiUJ-0008Lw-0L for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Aug 2016 12:49:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beiUI-0001Ux-C7 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Aug 2016 12:49:58 +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_2) (envelope-from ) id 1beiSu-0008Os-3I for pgsql-hackers@postgresql.org; Tue, 30 Aug 2016 12:48:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beiSq-0001nM-7Q for pgsql-hackers@postgresql.org; Tue, 30 Aug 2016 12:48:31 +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 u7UCmMk6023651; Tue, 30 Aug 2016 08:48:22 -0400 From: Tom Lane To: Michael Paquier cc: Bernd Helmle , Alvaro Herrera , Simon Riggs , PostgreSQL mailing lists Subject: Re: standalone backend PANICs during recovery In-reply-to: References: <20160402215748.GA136801@alvherre.pgsql> <12838.1471639801@sss.pgh.pa.us> <2086.1471711308@sss.pgh.pa.us> <2DA7350F7296B2A142272901@eje.land.credativ.lan> Comments: In-reply-to Michael Paquier message dated "Tue, 30 Aug 2016 15:47:25 +0900" Date: Tue, 30 Aug 2016 08:48:22 -0400 Message-ID: <23650.1472561302@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Wed, Aug 24, 2016 at 5:07 PM, Bernd Helmle wrote: >> That said, i'm okay if --single is not intended to bring up a hot standby. >> There are many other ways to debug such problems. > This patch is still on the CF app: > https://commitfest.postgresql.org/10/610/ > Even after thinking about it, my opinion is still the same. Let's > prevent a standalone backend to start if it sees recovery.conf. > Attached is a patch and the CF entry is switched as ready for > committer to move on. Hm, StartupXLOG seems like a pretty random place to check that, especially since doing it there requires an extra stat() call. Why didn't you just make readRecoveryCommandFile() error out? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers