Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYfN-0002kf-7r for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2022 20:07:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYYfL-0000av-GE for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2022 20:07:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYfL-0000am-6H for pgsql-hackers@lists.postgresql.org; Wed, 14 Sep 2022 20:07:23 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYfE-0001qu-It for pgsql-hackers@postgresql.org; Wed, 14 Sep 2022 20:07:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 85E833200A0F; Wed, 14 Sep 2022 16:07:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 14 Sep 2022 16:07:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663186034; x= 1663272434; bh=cNNXzoygDgNqQUXlXNXmZZ2S0IYzz4AyRrLVSREm0Ow=; b=U pSe5DUOdgCcVH/+3VQ5d8L94i79qyMkOmzOC7cKbOqmCp7ug690bVG/iQErUd+co CKWCBJRlSPm78Oeq0l+khYyaGVSRwmZhJj9d4ayRSdNVoxgvfppUu/dIv4/c1ljx ckxwuP6nV4SndQ0xgL13701lRvgD1q6VVg5nvysqGK/K0qIgv0ESVcrGnQT5f3tu tOKDV6XwUN4qrD3FYd3yyawHdbVmAuffxtjXRzb+AHLYMbKoYbFjtL/YUJlYW9fO Hka7GOyxfGxoHs+261ux9eZeKqNFaoTCUgiy2+9iod/q6xINHb9jZIkNtmBzB3YG tKnbRyblwHldfmXlk5DHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduiedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Sep 2022 16:07:12 -0400 (EDT) Message-ID: <37857474-5caa-ccb3-92a3-150ddfe851ab@enterprisedb.com> Date: Wed, 14 Sep 2022 22:07:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: archive modules Content-Language: en-US To: Nathan Bossart Cc: Tom Lane , =?UTF-8?Q?Benoit_Lobr=c3=a9au?= , Alvaro Herrera , Robert Haas , "Bossart, Nathan" , David Steele , Fujii Masao , "pgsql-hackers@postgresql.org" , Michael Paquier , Magnus Hagander , Stephen Frost References: <20220824221723.GA1347845@nathanxps13> <20220825200600.GA1465148@nathanxps13> <20220829224621.GB541895@nathanxps13> <20220830163048.GA544233@nathanxps13> <613541.1662842656@sss.pgh.pa.us> <20220910211046.GA2651323@nathanxps13> <9ee5d180-2c32-a1ca-d3d7-63a723f68d9a@enterprisedb.com> <20220914200305.GA2984249@nathanxps13> From: Peter Eisentraut In-Reply-To: <20220914200305.GA2984249@nathanxps13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.09.22 22:03, Nathan Bossart wrote: > On Wed, Sep 14, 2022 at 09:33:46PM +0200, Peter Eisentraut wrote: >> Another question on this feature: Currently, if archive_library is set, >> archive_command is ignored. I think if both are set, it should be an error. >> Compare for example what happens if you set multiple recovery_target_xxx >> settings. I don't think silently turning off one setting by setting another >> is a good behavior. > > I originally did it this way, but changed it based on this feedback [0]. I > have no problem with the general idea, but the recovery_target_* logic does > have the following note: > > * XXX this code is broken by design. Throwing an error from a GUC assign > * hook breaks fundamental assumptions of guc.c. So long as all the variables > * for which this can happen are PGC_POSTMASTER, the consequences are limited, > * since we'd just abort postmaster startup anyway. Nonetheless it's likely > * that we have odd behaviors such as unexpected GUC ordering dependencies. Ah yes, that won't work. But maybe we can just check it at run time, like in LoadArchiveLibrary().