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.96) (envelope-from ) id 1w8nkI-000tOR-0H for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 23:16:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8nkG-00EQqU-2q for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 23:16:09 +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.96) (envelope-from ) id 1w8nkG-00EQqM-1a for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 23:16:09 +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.98.2) (envelope-from ) id 1w8nkD-00000000Qx5-3mBu for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 23:16:07 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 268105A27FD for ; Sat, 04 Apr 2026 01:16:03 +0200 (CEST) Received: from s979.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 11B605A426F; Sat, 04 Apr 2026 01:16:03 +0200 (CEST) Received: from localhost (unknown [172.22.191.5]) by s979.loopia.se (Postfix) with ESMTP id 1019510BC3A3; Sat, 04 Apr 2026 01:16:03 +0200 (CEST) X-Virus-Scanned: amavis 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: s470.loopia.se (amavis); dkim=pass (2048-bit key) header.d=proxel.se Received: from s934.loopia.se ([172.22.191.6]) by localhost (s470.loopia.se [172.22.190.34]) (amavis, port 10024) with LMTP id 4sBqITiihqBO; Sat, 4 Apr 2026 01:15:59 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: andreas@proxel.se X-Loopia-Originating-IP: 147.28.75.140 Received: from [192.168.0.121] (customer-147-28-75-140.stosn.net [147.28.75.140]) (Authenticated sender: andreas@proxel.se) by s934.loopia.se (Postfix) with ESMTPSA id B62847CE90D; Sat, 04 Apr 2026 01:15:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxel.se; s=loopiadkim1707418970; t=1775258159; bh=f8fcDcwPimQv4/KOa7ETweeCfTj1/WSkP+5fwBL3+BU=; h=Date:Subject:To:References:From:In-Reply-To; b=o9NzoZfULkH8suQeRt0VL5GpJEXYglt6jqI+/B+YmBQxeMLnDrLD4t5Ay7cxORUw6 DJP2gRH9pmAsdN9y9DmkncTXsl2nGLt4L6X+Dh/lOn0lwZVqYYgu4lBrj5EdqRQALi VqhmLQ1KAXz5UmPw99f00pdnYTYxifQ8Q09S5HLOzv62r6rNpl1aIIg6TZ/XqlP1DK HsyCQQvLt0RQVrx8ckdVToMiPgWqV7i9GTjPdIxo2NbKNBFOmaSo/fuyC1YJGb6oWE 4I1oUBD0BCSJU9JxxN+yz350Jy7FKSLqRh98wrBHJVriFeDi2YRanJUa1FGbr4jHnz Z0kxSaCpMN+aQ== Message-ID: <8b587a55-148f-4cb4-8941-8fed282625a9@proxel.se> Date: Sat, 4 Apr 2026 01:15:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [doc] pg_ctl: fix wrong description for -l To: =?UTF-8?B?S3Vyb2RhLCBIYXlhdG8v6buS55SwIOmavOS6ug==?= , "'pgsql-hackers@lists.postgresql.org'" References: From: Andreas Karlsson Content-Language: en-US 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 3/23/26 11:55 AM, Kuroda, Hayato/黒田 隼人 wrote: > ``` > -l filename > --log=filename > Append the server log output to filename. If the file does not exist, it is created. The umask is set to 077, so access to the log file is disallowed to other users by default. > ``` > > But users who are in the same group can also see the log if group permissions are > enabled on the data directory. It was extended by c37b3d0 but updating the doc seemed > to be missed. Attached patch can fix the issue. Thanks for the patch. Nicely spotted, but I am not sure I am a fan of the new text. Shouldn't we still mention that "If the file does not exist, it is created."? Also I think the last sentence would flow better as: Access to the log file is disallowed to other users by default, but users in the same group can also read it if group permissions are enabled on the data directory. Best regards, Andreas -- Andreas Karlsson Percona