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 1tI3MZ-00Blqy-VA for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Dec 2024 10:09:08 +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 1tI3MX-00FrPY-EY for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Dec 2024 10:09:06 +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 1tI3MX-00FrPP-27 for pgsql-hackers@lists.postgresql.org; Mon, 02 Dec 2024 10:09:06 +0000 Received: from udcm-wwu1.uni-muenster.de ([128.176.118.7]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tI3MV-000d3D-Cl for pgsql-hackers@lists.postgresql.org; Mon, 02 Dec 2024 10:09:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-muenster.de; i=@uni-muenster.de; q=dns/txt; s=uniout; t=1733134144; x=1764670144; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=AmFjOdjN1l/3cHm8GlfTQ694SmET3VsTa1gje5G9m/k=; b=Wl3VdNEL75dEdYE5WitLVzIcOrBgNCkY1rswFHTg+l62t1mVYxgEsvdH D0fExPLIiWiymkg1SZHDac5+cyUM1P/dYWwpv+BW7rXavgh0tpqKtHaTu 9hUZUAfTivNk+Wk8NbnxeDR/ot8OFM5GyjHQ4RbVGYq0DAsdOB1sWbBP+ 9PH6XwkgeHOeTOVKNsUq+T4P1EHzRbvOSdDQxNYv0aLsLwGdSy+18JqZl a4dbHYnigS7TqTb3cMYCawlxuNszIt0aIqBPHkkYYUnjJo838FSvIEm+J JEjIh+8+tl5peDIdnZqOseS14pg1S8fKG2Om8/PuBBdJ+YdNWbfqGXrOy w==; X-CSE-ConnectionGUID: A0KGPxj1SnqsPAc3GJKBPg== X-CSE-MsgGUID: Cel+69WoRVaSMXNbgbD6lw== X-IronPort-AV: E=Sophos;i="6.12,202,1728943200"; d="scan'208";a="350264938" Received: from secmail.uni-muenster.de ([128.176.118.4]) by UDCM-RELAY1.UNI-MUENSTER.DE with ESMTP; 02 Dec 2024 11:09:00 +0100 Received: from [192.168.178.27] (unknown [78.48.137.86]) by SECMAIL.UNI-MUENSTER.DE (Postfix) with ESMTPSA id 2FC7320ADF00; Mon, 2 Dec 2024 11:08:57 +0100 (CET) Message-ID: Date: Mon, 2 Dec 2024 11:08:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Truncate logs by max_log_size To: Kirill Gavrilov Cc: Kirill Reshke , "Andrey M. Borodin" , Euler Taveira , pgsql-hackers@lists.postgresql.org References: <94d53a41-d1f5-4fd1-8d1e-ff36ac569848@app.fastmail.com> <4DA5A159-39FD-47DB-95E5-A4F65BC5782A@yandex-team.ru> <53e96b5a-cc77-4afa-8103-79c69afef1a6@uni-muenster.de> <748a7ec0-9126-4f27-a2a7-e3e449d6fdd7@uni-muenster.de> <8a240667-de9e-455b-b3e2-62f34ec80154@uni-muenster.de> <3f1b817f-6e7a-4e01-bfc5-50ea3724225e@uni-muenster.de> Content-Language: en-US From: Jim Jones In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 29.11.24 21:57, Kirill Gavrilov wrote: > Same thing applies to log_parameter_max_length, for example. > > postgres=# set log_parameter_max_length = '1foo'; > ERROR:  invalid value for parameter "log_parameter_max_length": "1foo" > HINT:  Valid units for this parameter are "B", "kB", "MB", "GB", and "TB". > postgres=# set log_parameter_max_length = '1TB'; > ERROR:  invalid value for parameter "log_parameter_max_length": "1TB" > HINT:  Value exceeds integer range.  > > I think we can leave it as is. I see. So I guess it is out of scope to change this message here. Small nitpicks: 1) The indentation of the comment at postgresql.conf.sample is a little bit off #max_log_size = 0                 # max size of logged statement                     # 0 disables the feature IMHO it looks better like this: #max_log_size = 0   # max size of logged statement                     # 0 disables the feature 2) You introduced a trailing whitespace at L34 (Not critical :)) +        Zero disables the setting. It happens to me all the time, so I usually try to apply my patches in a clean branch just to make sure I didn't miss anything. Other than that, I have nothing more to add at this point. Thanks -- Jim