Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtUcV-0003KN-Hh for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2017 08:08:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtUcT-000794-AK for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Sep 2017 08:08:01 +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_2) (envelope-from ) id 1dtUcR-00078s-Dq for pgsql-hackers@postgresql.org; Sun, 17 Sep 2017 08:07:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtUcN-0007gb-MR for pgsql-hackers@postgresql.org; Sun, 17 Sep 2017 08:07:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 042FF20DA6; Sun, 17 Sep 2017 04:07:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 17 Sep 2017 04:07:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=gk5Qwi+OuebIdO7yrl FQgW3/W+gwpUQWWGSpRH2gMEE=; b=Y1g1cxA7TKDf44+uPijVc7vlr9W2Eh/8/6 Z1syXusOLYH7Q2ud3Z0oA8taKb9gSQ1G3shZNUoJjzgaXtqkkiFGuivVgCsXzrKO Dt2CEFasC5iJ+PPkRMXziKaqQr9DB3XExuHNwMFP6bMz+DmwFrrVrVGl/tfeaGQx 50lnLGCFBnIDtRM1K1FG7OQO5/rt9Y9pGmeR62nXl0S0/uv2ffYw98IAh7afYtK4 H+mvXhPyJo9gAI0IdRW1swBAvWYn1a+XQTK4oemSavGIl7KBThCJCcMoOL9EPDk6 hOfsCtDMo9VRR3KltLPR3eHgKlMmkTWzwTBg+uQyBgRcwFc4lmIQ== X-ME-Sender: X-Sasl-enc: hAaiejbcC++kud0LvDJ3jUKXYdusr/cmktWAcRkOV8hu 1505635673 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B0FC244C7; Sun, 17 Sep 2017 04:07:53 -0400 (EDT) Date: Sun, 17 Sep 2017 01:07:52 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup. Message-ID: <20170917080752.rcmihzfmgbeuqjk2@alap3.anarazel.de> References: <14134.1505572349@sss.pgh.pa.us> <20170916182634.blb7upixw7hosdhu@alap3.anarazel.de> <23456.1505586621@sss.pgh.pa.us> <20170916183849.kgqlyi3q2oy4qjkx@alap3.anarazel.de> <27204.1505591941@sss.pgh.pa.us> <20170916202705.lhszupzi3s4iaxy6@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="dhtfi3jptutln3lx" Content-Disposition: inline In-Reply-To: <20170916202705.lhszupzi3s4iaxy6@alap3.anarazel.de> 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 --dhtfi3jptutln3lx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2017-09-16 13:27:05 -0700, Andres Freund wrote: > > This does not seem like a problem that justifies a system-wide change > > that's much more delicate than you thought. > > We need one more initialization call during crash-restart - that doesn't > seem particularly hard a fix. FWIW, attached is that simple fix. Not quite ready for commit - needs more comments, thoughts and a glass of wine less to commit. I'll try to come up with a tap test that tests crash restarts tomorrow - not sure if there's a decent way to trigger one on windows without writing a C function. Will play around with that tomorrow. - Andres --dhtfi3jptutln3lx Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Preliminary-fix-for-crash-restart.patch"