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 1mfMfj-0003vl-NF for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Oct 2021 13:39: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 1mfMfi-00042H-N7 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Oct 2021 13:39:22 +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 1mfMfi-000428-Ec for pgsql-hackers@lists.postgresql.org; Tue, 26 Oct 2021 13:39:22 +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 1mfMfb-0007JL-Us for pgsql-hackers@lists.postgresql.org; Tue, 26 Oct 2021 13:39:22 +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 19QDdCkq080427; Tue, 26 Oct 2021 09:39:12 -0400 From: Tom Lane To: Kyotaro Horiguchi cc: pgsql-hackers@lists.postgresql.org Subject: Re: Setting log_connection in connection string doesn't work In-reply-to: <20211026.173350.2163793213857103911.horikyota.ntt@gmail.com> References: <20211026.173350.2163793213857103911.horikyota.ntt@gmail.com> Comments: In-reply-to Kyotaro Horiguchi message dated "Tue, 26 Oct 2021 17:33:50 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <80425.1635255552.1@sss.pgh.pa.us> Date: Tue, 26 Oct 2021 09:39:12 -0400 Message-ID: <80426.1635255552@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kyotaro Horiguchi writes: > I noticed that the following command doesn't leave connection log in > log file. >> psql "host=localhost options=-c\ log_connections=on" [ shrug... ] Why would you expect it to? Should "-c log_connections=off" be able to hide a connection from the log? regards, tom lane