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 1mMCAE-0002A3-MH for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Sep 2021 16:35:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mMCAD-0003Fe-6p for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Sep 2021 16:35:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMCAC-0003FW-VJ for pgsql-hackers@lists.postgresql.org; Fri, 03 Sep 2021 16:35:36 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMCAA-0004uC-Fu for pgsql-hackers@postgresql.org; Fri, 03 Sep 2021 16:35:36 +0000 Received: from hrk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id 6F806607BA; Sat, 4 Sep 2021 01:35:30 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at oss.nttdata.com Subject: Re: Improve logging when using Huge Pages To: Tom Lane Cc: Kyotaro Horiguchi , noriyoshi.shinoda@hpe.com, rjuju123@gmail.com, pgsql-hackers@postgresql.org References: <7e5b9f6d-1db9-d1e2-3bd8-ef65f24b35be@oss.nttdata.com> <20210903.164934.1726669051525427478.horikyota.ntt@gmail.com> <1946f6b9-75a1-7aeb-7b06-6c018377e518@oss.nttdata.com> <2498302.1630679233@sss.pgh.pa.us> From: Fujii Masao Message-ID: Date: Sat, 4 Sep 2021 01:35:30 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <2498302.1630679233@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021/09/03 23:27, Tom Lane wrote: > Fujii Masao writes: >> IMO, if the level is promoted to LOG, the message should be updated >> so that it follows the error message style guide. But I agree that simpler >> message would be better in this case. So what about something like >> the following? > >> LOG: could not map anonymous shared memory (%zu bytes) with huge pages enabled >> HINT: The server will map anonymous shared memory again with huge pages disabled. > > That is not a hint. Maybe it qualifies as errdetail, though. Yes, agreed. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION