Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSjdJ-0004St-9s for pgsql-committers@arkaria.postgresql.org; Thu, 07 Nov 2019 15:23:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSjdH-0003bf-RC for pgsql-committers@arkaria.postgresql.org; Thu, 07 Nov 2019 15:23:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSjdH-0003bM-GF for pgsql-committers@lists.postgresql.org; Thu, 07 Nov 2019 15:23:35 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iSjdD-0004kD-9J for pgsql-committers@lists.postgresql.org; Thu, 07 Nov 2019 15:23:33 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 931DE21BF9; Thu, 7 Nov 2019 10:23:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 07 Nov 2019 10:23:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; 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-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=2eWghu5YnXFAEdR9BKd5ehSYQj0qQ/sf6rWwHX4eJ CM=; b=m+fYzVfZksk/nkYvDoDaS/VY2LR7saw86Gu+kYX97fcre0nSNs14PVkr/ +eswOMSnxUCA/UZpM+EBEjzugXx9XQeJcWC2SkDLs5GCnedfFYLoGzqXhofEUoX6 jsWUR1kv+qkUy3rQhQPI7zs2kktlGYqzaqBsc6LPs6GShhtqgKRog3iP6g4QBCsa SiwQBmG2Jd67g5PAlTkIvcvp57wNZOfMuMH8oT1dwXtxCMAVHZxZtg1NwueM7Qm3 kSTDGUQo6kYNtENHVpeQ52oOVlQi6O1WJv9pla07tqEbmwrz+9SIYNW7AojFWVyt 9NLoVq8m3vnpN5uQ7+/VCYBhBA7nw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudduledgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrudegjedrjeelnecurfgrrhgrmhepmhgrihhlfhhroh hmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 542ED8005C; Thu, 7 Nov 2019 10:23:27 -0500 (EST) Subject: Re: pgsql: doc: Further clarify how recovery target parameters are applied To: Fujii Masao References: <20191105132123.GA1578@alvherre.pgsql> Cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <7c633354-0b2e-a303-8867-375592d885b2@2ndquadrant.com> Date: Thu, 7 Nov 2019 16:23:25 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-11-06 10:49, Fujii Masao wrote: > On Wed, Nov 6, 2019 at 4:29 PM Peter Eisentraut > wrote: >> >> On 2019-11-06 05:48, Fujii Masao wrote: >>> Patch attached. As I argued upthread, IMO it's better to remove >>> the latter description from the doc and the patch does that. >>> Also the patch adds "mainly" into the former description. >> >> I think we should list explicitly what is applied and what is not. This >> is the reference documentation after all. > > That's possible, but may make the document more complicated and confusing, > I'm afraid. Because the parameters used for archive recovery and standby mode > are not categorized cleanly. After reading this again and again, I think the best fix to get PG12 into "correct" shape is to just remove the offending sentence: diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 46bc31de4c..fdebe9bf4b 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3217,9 +3217,7 @@ Archive Recovery takes precedence. Targeted recovery mode ends when the archived WAL is fully replayed, or when recovery_target is reached. In this mode, the parameters from both this section and will be used. Parameters - from will not be - used. + linkend="runtime-config-wal-recovery-target"/> will be used. As we are discussing in other threads, there is further opportunity to reorganize how these settings interact, but that's a different project. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services