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 1pU9XW-0006Pu-MX for pgsql-general@arkaria.postgresql.org; Mon, 20 Feb 2023 17:01:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pU9XV-0002aB-FD for pgsql-general@arkaria.postgresql.org; Mon, 20 Feb 2023 17:01:21 +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 1pU9XU-0002Zx-C0 for pgsql-general@lists.postgresql.org; Mon, 20 Feb 2023 17:01:21 +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 1pU9XN-00057t-VI for pgsql-general@lists.postgresql.org; Mon, 20 Feb 2023 17:01:18 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DD14D5C01C0; Mon, 20 Feb 2023 12:01:10 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 20 Feb 2023 12:01:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1676912470; x= 1676998870; bh=6QIJ0CEFULoFXQht/0u7RhPhuBCwZXSF98Sbvlo7ilw=; b=Y lnxHxeyK0rZYQcVRzZ+J1GMLmyQZqC9zVfOFFipACWwgrOzMOEXQAOidrebIQ83a S4jFfKuw9G15Bim/I3IpNLVH5AMlQaecpc3NtcUs76jwjRuCG7T6tdFqjb0ZXKtm TcWt4h8b/EMSLVcWrHgb8WpglqjiAX0viNf8CCTCHogAxKhHjD7D28k4T062w+sh F5qhHZAT7UOZUIrRqyQ9XqIAnDu/Ayq2J06BzDCViVKj5NQl/M4bPcUOBuWospgj jMgohVeReWY7VeHJAw1ORBGxZR7PB4dQfKxRQBdtiGyBDfWKKWJVcO1Yn9B12+AL nKLAidWqYGgP0noEMltWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; t=1676912470; x=1676998870; bh=6 QIJ0CEFULoFXQht/0u7RhPhuBCwZXSF98Sbvlo7ilw=; b=ITKFFnP3pwi3FWECf eQ4MWX0NBGU61000aP/IcgACDMyVF4GIqWyxZE3T6JRrufzPPH1E822kU+ZhUb8+ 9odhht0x42+YMnXxpIjdJ1wVG49GZeZhEfqi1NXvceKPNlxfXUPopFhe7IotZLl5 F8c7EPFBieIt4Yilu2lAMEID9yit+S0mp/uHL5RtxpABNg+Z4wwEgA1H9GfTN5mB LHA2CScg9EBITXsNeUGe0bDWgw39YR4uzBLMkXHVqX4CyBwr2GoxhkdXIIVwOtaS 7uj1nGaFZi3g68Wr2LPILdoncP7VUGyFb6UrGlg/1Uqv1CFo8Zj98wROXSsCVjUx hPcwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejhedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeelkeegjefhkeetheefudevteehiedvudehkeduleet fedvffeuhedtvdegtdeffeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 12:01:09 -0500 (EST) Message-ID: Date: Mon, 20 Feb 2023 09:01:08 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: pg_reload_conf() To: Marc Millas , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/20/23 08:57, Marc Millas wrote: > select  setting, boot_val, reset_val from pg_settings where > name='log_connections'; # select setting, boot_val, reset_val, context from pg_settings where name='log_connections'; setting | boot_val | reset_val | context ---------+----------+-----------+------------------- on | off | on | superuser-backend https://www.postgresql.org/docs/15/view-pg-settings.html There are several possible values of context. In order of decreasing difficulty of changing the setting, they are: ... superuser-backend Changes to these settings can be made in postgresql.conf without restarting the server. They can also be set for a particular session in the connection request packet (for example, via libpq's PGOPTIONS environment variable), but only if the connecting user is a superuser or has been granted the appropriate SET privilege. However, these settings never change in a session after it is started. If you change them in postgresql.conf, send a SIGHUP signal to the postmaster to cause it to re-read postgresql.conf. The new values will only affect subsequently-launched sessions. ... -- Adrian Klaver adrian.klaver@aklaver.com