Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsP4n-001Zyj-Sn for pgsql-committers@arkaria.postgresql.org; Wed, 12 Mar 2025 16:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tsP4m-008pRn-Jq for pgsql-committers@arkaria.postgresql.org; Wed, 12 Mar 2025 16:37:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsP4m-008pRe-7y for pgsql-committers@lists.postgresql.org; Wed, 12 Mar 2025 16:37:00 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tsP4j-002SYR-0E for pgsql-committers@lists.postgresql.org; Wed, 12 Mar 2025 16:36:59 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 16D272BA6A7 for ; Wed, 12 Mar 2025 17:36:52 +0100 (CET) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 024202BB012; Wed, 12 Mar 2025 17:36:52 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 000917CEA59; Wed, 12 Mar 2025 17:36:51 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s473.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s899.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id M69CFRekaUje; Wed, 12 Mar 2025 17:36:51 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 95.193.134.114 Received: from smtpclient.apple (host-95-193-134-114.mobileonline.telia.com [95.193.134.114]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id 45DBB2C8BA29; Wed, 12 Mar 2025 17:36:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1741797411; bh=BrPdVRn7r2u0uEA6KD+3CANhyyX9iL0YYotr9ZIxZ3Y=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=IcJcC7qQkuRqXLZGr+YuWo6oGm4/B8lfpTaSsom666dl01lOBrKb0KfQOtfiyleLc 8kMbUKCgBtYFLTb8rOa2OQznZRNGSbWPFNPA1Xp71DdE8UMge9QThwW2tA7pEfGsZ1 Ui2SD1I4inrVrxphylhJ9aOvT/fMGGbXC8TIF6PnowF+nBWRgikwnbassNnVH9/iXi 6GsIg5SqnOfnLhZuvOyCcf/8LpzDjmQh+NUhQCc8TpggrquEYlQ7ckf5LP2jpPRcnV Zp+dZc7I7aAUACHItKEFzFazo+aYvhlQCbu1x89c8oxNsu5AF0DDHOwQeX1JmZvPwg hpq+nZuJCpp2w== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: pgsql: Modularize log_connections output From: Daniel Gustafsson In-Reply-To: Date: Wed, 12 Mar 2025 17:36:40 +0100 Cc: "Daniel Westermann (DWE)" , "pgsql-committers@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <22D5E616-F460-467A-B913-32CCF1CDB884@yesql.se> References: To: Melanie Plageman X-Mailer: Apple Mail (2.3776.700.51.11.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 12 Mar 2025, at 17:07, Melanie Plageman = wrote: >=20 > Thanks for taking a look! >=20 > On Wed, Mar 12, 2025 at 11:50=E2=80=AFAM Daniel Westermann (DWE) > wrote: >>=20 >>=20 >> great, thanks for this. One question: >>=20 >>> The current log_connections options are 'receipt', 'authentication', = and >>> 'authorization'. The empty string disables all connection logging. = 'all' >>> enables all available connection logging. >>=20 >> ... shouldn't this be added to tab completion as well? >>=20 >> postgres=3D# alter system set log_connections TO DEFAULT >=20 > Because it is now a string GUC, there isn't a facility for tab > completion. This GUC also cannot be changed within a session which makes tab = completion less useful. -- Daniel Gustafsson