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 1oYacS-0000p8-40 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2022 22:12:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYacQ-0000bW-Rk for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Sep 2022 22:12:30 +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 1oYacQ-0000b1-I4 for pgsql-hackers@lists.postgresql.org; Wed, 14 Sep 2022 22:12:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYacO-0003o7-DT for pgsql-hackers@postgresql.org; Wed, 14 Sep 2022 22:12:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28EMC9cH2910706; Wed, 14 Sep 2022 18:12:09 -0400 From: Tom Lane To: Nathan Bossart cc: Peter Eisentraut , Benoit =?iso-8859-1?Q?Lobr=E9au?= , Alvaro Herrera , Robert Haas , "Bossart, Nathan" , David Steele , Fujii Masao , "pgsql-hackers@postgresql.org" , Michael Paquier , Magnus Hagander , Stephen Frost Subject: Re: archive modules In-reply-to: <20220914211746.GA2986134@nathanxps13> References: <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> <37857474-5caa-ccb3-92a3-150ddfe851ab@enterprisedb.com> <2884265.1663188443@sss.pgh.pa.us> <20220914211746.GA2986134@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Wed, 14 Sep 2022 14:17:46 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2910704.1663193529.1@sss.pgh.pa.us> Date: Wed, 14 Sep 2022 18:12:09 -0400 Message-ID: <2910705.1663193529@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Wed, Sep 14, 2022 at 04:47:23PM -0400, Tom Lane wrote: >> Yeah, the objection there is only to trying to enforce such >> interrelationships in GUC hooks. In this case it seems to me that >> we could easily check and complain at the point where we're about >> to use the GUC values. > I think the cleanest way to do something like that would be to load a > check_configured_cb that produces a WARNING. IIRC failing in > LoadArchiveLibrary() would just cause the archiver process to restart over > and over. HandlePgArchInterrupts() might need some work as well. Hm. Maybe consistency-check these settings in the postmaster, sometime after we've absorbed all GUC settings but before we launch any children? That could provide a saner implementation for the recovery_target_* variables too. regards, tom lane