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 1nX6Fb-0004t1-DL for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2022 19:02:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nX6Fa-0000mK-A0 for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2022 19:02: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 1nX6Fa-0000mB-0e for pgsql-hackers@lists.postgresql.org; Wed, 23 Mar 2022 19:02: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 1nX6FX-0002A9-Au for pgsql-hackers@lists.postgresql.org; Wed, 23 Mar 2022 19:02:29 +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 22NJ2N2W2779119; Wed, 23 Mar 2022 15:02:23 -0400 From: Tom Lane To: Maciek Sakrejda cc: Justin Pryzby , Robert Haas , "David G. Johnston" , Bharath Rupireddy , PostgreSQL Hackers Subject: Re: warn if GUC set to an invalid shared library In-reply-to: References: <164378196169.19783.12147751717180735532.pgcf@coridan.postgresql.org> <20220210015854.GV31460@telsasoft.com> Comments: In-reply-to Maciek Sakrejda message dated "Mon, 14 Feb 2022 10:12:22 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2779117.1648062143.1@sss.pgh.pa.us> Date: Wed, 23 Mar 2022 15:02:23 -0400 Message-ID: <2779118.1648062143@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Maciek Sakrejda writes: > In v4, the message looks fine to me for shared_preload_libraries > (except there is a doubled "is"). However, I also get the message for > a simple SET with local_preload_libraries: > postgres=# set local_preload_libraries=xyz; > WARNING: could not access file "xyz" > HINT: The server will fail to start with the existing configuration. > If it is is shut down, it will be necessary to manually edit the > postgresql.auto.conf file to allow it to start. > SET I agree with Maciek's concerns about these HINTs being emitted inappropriately, but I also have a stylistic gripe: they're only halfway hints. Given that we fix things so they only print when they should, the complaint about the server not starting is not a hint, it's a fact, which per style guidelines means it should be errdetail. So I think this ought to look more like WARNING: could not access file "xyz" DETAIL: The server will fail to start with this setting. HINT: If the server is shut down, it will be necessary to manually edit the postgresql.auto.conf file to allow it to start again. I adjusted the wording a bit too --- YMMV, but I think my text is clearer. regards, tom lane