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 1nDbIu-000236-Mq for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jan 2022 00:09:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nDbIt-0005ha-FT for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jan 2022 00:09:19 +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 1nDbIt-0005hQ-6g for pgsql-hackers@lists.postgresql.org; Sat, 29 Jan 2022 00:09:19 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nDbIp-00033X-6k for pgsql-hackers@lists.postgresql.org; Sat, 29 Jan 2022 00:09:18 +0000 Received: by mail-io1-xd30.google.com with SMTP id e79so9719559iof.13 for ; Fri, 28 Jan 2022 16:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ha6cHdWBSosWS6YmbcJpZZjFdyK+ynFIOv8UpWTSUwA=; b=zLLUkq/c2yOFyIjd2AcONy5493/DsFa+irE+XUsMY2zPB8s2wa+Kc+DJ2vu31QnTcl uzL89HFw5tNLYz564fMgxyBMQOQk/sY6X9MTR9njlxKBwoDTbb2tui0ZjMa2hOgWhnbE B/NSJbHwCO0gwuBxNkRI7Uqxmw8IdPhZUurw0DWIrYFXjztJOchbQqSFDe40ImoQ1xyF cCXeyPRvhR3Df5PecxjcVwp2NWm7AX964WlKpldU0Tq/Qvis85KKwJekFnuwh5RilNnT d2SOIJ6YcrExg5JcQ9qxyG0REaazlvGARLDq4UkJM3UexwJ15fbqpd92gOthAw1e56s/ rLGQ== 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:user-agent; bh=Ha6cHdWBSosWS6YmbcJpZZjFdyK+ynFIOv8UpWTSUwA=; b=x3a6l+S30BoLLjLpZdFIQbJgy67pyBhId4L8kM0A2lhrZRufVCtvddA3jocxMYkh7n uFgFOBpAd7+msieUmgxAQvZyPOsR9uyVZnYbgNbENadmpOVcV+IpHMAVvlUxA/AdlXwF csR8qewdTcC5Oau24rKbFrrUpy/Pmy5yyDoQMOmTvWRgF2fdtx+XYg8h0mnEGOJr1Yq7 iqc/0uVtxr1pgXo2Szm3XBQwgtdHPHLuSNfk1LNYy9w56X0s33x3hbeOywNnm35FOb9Q 8iJfiFQLoJRy6FVrSHsdQaNNY2tM5ecZH6uiIDh5pfjcU5WKUap8j+Hox0cTQ7MnmX49 lP9Q== X-Gm-Message-State: AOAM5331eZiL//XFdJVgrDoAAtmuLS6+bx6AYoRWU/G8oP5cBmVf9pA5 WBq3chdBZH0078deRxEDfmtvVw== X-Google-Smtp-Source: ABdhPJwZ8BWfKxJTR40cFfSXsMNUEejPd+VJRhd6P2ZppSsn8U7Pbq48+qMCj+on42IKMZR8KebG9g== X-Received: by 2002:a6b:dd02:: with SMTP id f2mr6731081ioc.127.1643414953617; Fri, 28 Jan 2022 16:09:13 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id g10sm14755248ile.34.2022.01.28.16.09.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Jan 2022 16:09:13 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 5A1AB800BCE; Fri, 28 Jan 2022 18:09:12 -0600 (CST) Date: Fri, 28 Jan 2022 18:09:12 -0600 From: Justin Pryzby To: Cary Huang Cc: pgsql-hackers@lists.postgresql.org, Justin Pryzby Subject: Re: warn if GUC set to an invalid shared library Message-ID: <20220129000912.GJ23027@telsasoft.com> References: <20211228174557.GI24477@telsasoft.com> <164341298003.1123.13296936139237024875.pgcf@coridan.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <164341298003.1123.13296936139237024875.pgcf@coridan.postgresql.org> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks for loooking On Fri, Jan 28, 2022 at 11:36:20PM +0000, Cary Huang wrote: > This is fine as this is what these patches are aiming to provide. However, when I try to restart the server, it fails to start because abc.so and xyz.so do not exist. Setting the parameters "local_preload_libraries" and "local_preload_libraries" to something else in postgresql.conf does not seem to take effect either. > It still complains shared_preload_libraries abc.so does not exist even though I have already set shared_preload_libraries to something else in postgresql.conf. This seems a little strange to me Could you show exactly what you did and the output ? The patches don't entirely prevent someone from putting the server config into a bad state. It only aims to tell them if they've done that, so they can fix it, rather than letting someone (else) find the error at some later (probably inconvenient) time. ALTER SYSTEM adds config into postgresql.auto.conf. If you stop the server after adding bad config there (after getting a warning), the server won't start. Once the server is off, you have to remove it manually. The goal of the patch is to 1) warn someone that they've put a bad config in place, so they don't leave it there; and, 2) if the server fails to start for such a reason, provide a CONTEXT line to help them resolve it quickly. Maybe you know all that and I didn't understand what you're saying. -- Justin