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 1og8cx-0008Di-RM for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 17:56:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1og8cv-0004X3-Ld for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 17:56:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1og8cu-0004Wt-Mj for pgsql-hackers@lists.postgresql.org; Wed, 05 Oct 2022 17:56:13 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1og8cn-0000nA-QK for pgsql-hackers@postgresql.org; Wed, 05 Oct 2022 17:56:11 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DAEEB5C00EB; Wed, 5 Oct 2022 13:56:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 05 Oct 2022 13:56:02 -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=1664992562; x= 1665078962; bh=wo+DD2IETMLAKTUle1inBaSGXv+NozEVHEnVeGWpk+A=; b=l tUgPNuWI2XEIV8meAFce7MmkZy6V00o1oGnMuXjHzeHFT6Dhv9+OkXLCpBBDqXS1 aH5L9H+NoGqpSP4c+PRpbwh8U/Sg0v+wTTfa5+c5tmOllE7AcMAljftrWU6jkTfQ HxcPFie415LC+3D616vj9oi/FiBjDcqbM6ZE01GXTwGOJAoAQAUgip0NoSlS8Alg KQmdhedSvkNbMHK3XY2T7KfDPVVTvNeRverEBO/3C2K+izPOd4RxVM97xdcpB7+D GnsK11Gp6/V2NLLSLgEgajZLmwiTFHaMSyxxk89V0KqN4bAIKHWORY8WoKlvaGff /K/D+k69GS0V33FQd3WPg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeifedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Oct 2022 13:56:00 -0400 (EDT) Message-ID: <4f66de67-35a0-3fe7-fa61-d618e1bd2c2c@enterprisedb.com> Date: Wed, 5 Oct 2022 19:55:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 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: <613541.1662842656@sss.pgh.pa.us> <20220910211046.GA2651323@nathanxps13> <9ee5d180-2c32-a1ca-d3d7-63a723f68d9a@enterprisedb.com> <20220914200305.GA2984249@nathanxps13> <37857474-5caa-ccb3-92a3-150ddfe851ab@enterprisedb.com> <2884265.1663188443@sss.pgh.pa.us> <20220914211746.GA2986134@nathanxps13> <2910705.1663193529@sss.pgh.pa.us> <20220914222736.GA3042279@nathanxps13> <20220923161402.GA736566@nathanxps13> From: Peter Eisentraut In-Reply-To: <20220923161402.GA736566@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 23.09.22 18:14, Nathan Bossart wrote: > On Fri, Sep 23, 2022 at 05:58:42AM -0400, Peter Eisentraut wrote: >> On 15.09.22 00:27, Nathan Bossart wrote: >>> Both archive_command and archive_library are PGC_SIGHUP, so IIUC that >>> wouldn't be sufficient. I attached a quick sketch that seems to provide >>> the desired behavior. It's nowhere near committable yet, but it >>> demonstrates what I'm thinking. >> >> What is the effect of issuing a warning like in this patch? Would it just >> not archive anything until the configuration is fixed? I'm not sure what >> behavior you are going for; it's a bit hard to imagine from just reading the >> patch. > > Yes, it will halt archiving and emit a WARNING, just like what happens on > released versions when you leave archive_command empty. Leaving archive_command empty is an intentional configuration choice. What we are talking about here is, arguably, a misconfiguration, so it should result in an error.