Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boflL-00028z-Pl for pgsql-committers@arkaria.postgresql.org; Mon, 26 Sep 2016 23:56:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1boflK-0001Xc-Pi for pgsql-committers@arkaria.postgresql.org; Mon, 26 Sep 2016 23:56:42 +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 1bofl7-0001Iz-Cw for pgsql-committers@postgresql.org; Mon, 26 Sep 2016 23:56:29 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bofl4-0003wx-GU for pgsql-committers@postgresql.org; Mon, 26 Sep 2016 23:56:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 53ABD2068D; Mon, 26 Sep 2016 19:56:25 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 26 Sep 2016 19:56:25 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=yDtHnS3Ar7ywwy3 YHPZMjPIdspU=; b=qxyFVFxhvqToZGdoUFSt/oL75NhHvts9yYpZ6U4AsQmu15s xBhweGjK1HPcc3ztAxO5L3uHONDmt+OdWO9vWW3I9bFirW0fspv36899QD3SF2g0 hLY44R4EX/WXbuFHZssAKdOJhI+HNUfmRzidrIikhc+WiGo0NqoK1qLdTotE= X-Sasl-enc: sn3cE8kW6XIy1NzpMjeoZzvfHp9f0zDNrxmq1JQHe6eC 1474934185 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 0C413CCEB3; Mon, 26 Sep 2016 19:56:25 -0400 (EDT) Subject: Re: pgsql: pg_ctl: Detect current standby state from pg_control To: Tom Lane , Michael Paquier References: <18364.1474818887@sss.pgh.pa.us> <27012.1474894431@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com> Date: Mon, 26 Sep 2016 19:56:24 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <27012.1474894431@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 9/26/16 8:53 AM, Tom Lane wrote: > I think that it's 100% pointless for get_control_dbstate > to be worried about transient CRC failures. If writes to pg_control > aren't atomic then we have problems enormously larger than whether > "pg_ctl promote" throws an error or not. The new code was designed to handle that, but if we think it's not an issue, then we can simplify it. I'm on it. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers