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 1neJCw-0005TT-TR for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 16:17:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neJCv-0005Va-4C for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 16:17:33 +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 1neJCu-0005VR-Or for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 16:17:32 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1neJCq-0006ed-Bh for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 16:17:32 +0000 Received: by mail-pl1-x634.google.com with SMTP id v12so4249472plv.4 for ; Tue, 12 Apr 2022 09:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YZcd3N++iGc46UyvjG5S9DmAZEY+NjrzhhMhZRn+RT8=; b=SG3j9SyzTUtMn0ZrTgWE4zwjen5LiP+TJVivv07TMUBVPNvS6XFlDl+0iCVMv5JXWe 3lmo0bi8Eehy6WcRj06mPLt7ehcJ4HxbCxzR4fCFQFDIkk5sfBPGwrY6DHtRIuEbJRvS IPZ7Mj2xLjrEUaHqpvgjh75oFoavIlNsaojmBI3tC9ErrcvM8vLzXDFzyG02AmB9y12A cg4sdRArw+0fkl/UjumTPps4Azkxos+Hf1R7zQwBev1Z3E5Dn9SHTneXfmv3ZX5fbVGn aDO35jbkQE9G9C0aosOE4ZWth8O/Z5f/piKvu1wxY8IyCo4/jLRN4HwVpF0dyx9pZtf8 QTIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YZcd3N++iGc46UyvjG5S9DmAZEY+NjrzhhMhZRn+RT8=; b=EOHahWgJM+CgHQ0+r5YRb9Y3m6bCJp6WboDICpSRLf99Q4KSIApwLNHJWkEljoBOaB 5K/kDQp5Z5nxCXNrh7ZlrZ6IUgTZhtrLb02bMfXp0NgCPe5n9F73YL2f4wB/E4nxqcPh FewITcc0nNc5XEidr8yj9mQcs0p4JjgpTf+4px3t5ADssW0GtuSMZVuVh16JPUHSC5QE 2uXIVekruro52PU66ldAQQRxil3s7mxD9fmFJFbaiNQQd/UCL+jsJ/1k5S81MhE9KDIT EekvnVa1daNfpFRzHeX+J6gdlvPwrTFSzjOWhdlMdC9C5pS2cB76hje0Td4F7DZw2LdI ujng== X-Gm-Message-State: AOAM530fcbKq+3bpR90r0VD7AUz7OVvFeqT112hmrTqx5++CheCiGASb WN2LMFU9Q50hF7Kk3pmn2F0= X-Google-Smtp-Source: ABdhPJzi19OzAc9JMeiYlIYUcXPkAyi0MLuP11d3maDlJ0/k2LRcLuu8KGWP4joe+Y7Eu8nrNXS6JQ== X-Received: by 2002:a17:90b:4d85:b0:1cb:9069:3d66 with SMTP id oj5-20020a17090b4d8500b001cb90693d66mr5814512pjb.151.1649780245900; Tue, 12 Apr 2022 09:17:25 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id l15-20020a62be0f000000b005059cc9cc34sm12358743pff.92.2022.04.12.09.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 09:17:25 -0700 (PDT) Date: Tue, 12 Apr 2022 09:17:23 -0700 From: Nathan Bossart To: Julien Rouhaud Cc: Robert Haas , Andres Freund , Michael Paquier , "Bossart, Nathan" , Fujii Masao , "wangsh.fnst@fujitsu.com" , Bharath Rupireddy , Greg Sabino Mullane , Tom Lane , "pgsql-hackers@lists.postgresql.org" Subject: Re: make MaxBackends available in _PG_init Message-ID: <20220412161723.GA2062175@nathanxps13> References: <20220326172316.obspcdmjqerislri@alap3.anarazel.de> <20220330163051.GA784643@nathanxps13> <20220411164408.GA1915258@nathanxps13> <20220411204442.GA2004824@nathanxps13> <20220411211435.GA2057981@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 12, 2022 at 01:08:35PM +0800, Julien Rouhaud wrote: > It looks sensible to me, although I think I would apply 0003 before 0002. Great. > + if (process_shared_preload_libraries_in_progress && > + !allow_when_loading_preload_libs) > + ereport(ERROR, > + (errcode(ERRCODE_CANT_CHANGE_RUNTIME_PARAM), > + errmsg("cannot change parameters while loading " > + "\"shared_preload_libraries\""))); > + > > I think the error message should mention at least which GUC is being modified. My intent was to make it clear that no parameters can be updated while loading s_p_l, but I agree that we should mention the specific GUC somewhere. Maybe this could go in a hint? -- Nathan Bossart Amazon Web Services: https://aws.amazon.com