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 1gRGqx-0002Z9-WA for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 13:23:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRGqw-0008SU-HK for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 13:23:06 +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 1gRGqw-0008SM-6s for pgsql-hackers@lists.postgresql.org; Mon, 26 Nov 2018 13:23:06 +0000 Received: from forward501p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:120]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRGqs-0006Ht-5l for pgsql-hackers@postgresql.org; Mon, 26 Nov 2018 13:23:04 +0000 Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward501p.mail.yandex.net (Yandex) with ESMTP id 7207F350058A; Mon, 26 Nov 2018 16:22:57 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kFLkrd2iDt-MusmZtcc; Mon, 26 Nov 2018 16:22:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zsrv.org; s=mail; t=1543238576; bh=zHDY+5NAJB6WVSZwJ9HyK5MnJRth5fN04iGFO1bHfX0=; h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id; b=rAtrv64HM5GfK5yhZagTCyC58TH1jcMg0Q/vAiJRgikpNdvOliRjs14XsOpuYzaLg B87B1Z3xijwAp+4a0hR/Mj8I8HDGMeiCuJlwdviEp6yqJ3nADPRX5AwXkFpVjFUIQg 7vD1HacKJBIJClllhjTwJf5+Nykwn0mrL0JVBMlY= Authentication-Results: mxback11j.mail.yandex.net; dkim=pass header.i=@zsrv.org Received: by iva4-24c534b4e3ac.qloud-c.yandex.net with HTTP; Mon, 26 Nov 2018 16:22:56 +0300 From: Sergei Kornilov To: Peter Eisentraut , Michael Paquier Cc: Postgres hackers In-Reply-To: References: <20181126002849.GD1776@paquier.xyz> <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net> Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 26 Nov 2018 16:22:56 +0300 Message-Id: <16874231543238576@iva4-24c534b4e3ac.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi > What is the reason for allowing multiple recovery_target_* settings and > taking the last one? Could we change this aspect to make this behave > better? Correct response to user configuration, similar to old recovery.conf logic or other GUC - we allow redefine with rule "latest win". I think we can disallow using multiple recovery_target_* settings. But currently i have no good idea how this check can be done in check_* callbacks. regards, Sergei