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 1u2IMc-00FvRH-N3 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2025 23:28:18 +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 1u2IMb-00Glnv-4Z for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2025 23:28:17 +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 1u2IMa-00Glnh-QB for pgsql-hackers@lists.postgresql.org; Tue, 08 Apr 2025 23:28:17 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u2IMY-003lYF-1P for pgsql-hackers@postgresql.org; Tue, 08 Apr 2025 23:28:16 +0000 Received: from [192.168.11.5] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id 70EB76178A; Wed, 9 Apr 2025 08:28:09 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <437100f2-dd86-42e6-830c-5ff413a25e8e@oss.nttdata.com> Date: Wed, 9 Apr 2025 08:28:09 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Enhancing Memory Context Statistics Reporting To: Daniel Gustafsson Cc: Rahila Syed , Andres Freund , PostgreSQL Hackers References: <54FAE93D-E156-4684-9352-1CEDE6BD4A1C@yesql.se> <5bxhxniyvjyfldi7yjxcnxkl3i2ghci2grjyeclrbkfqnyhowk@dfkqzbvtbpml> <3eb40b3e-45c7-426a-b7f8-81f7d05a9b53@oss.nttdata.com> <74105887-E4EF-4CA2-9F0A-3C0CE05BF632@yesql.se> Content-Language: en-US From: Fujii Masao In-Reply-To: <74105887-E4EF-4CA2-9F0A-3C0CE05BF632@yesql.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/04/09 6:27, Daniel Gustafsson wrote: >> On 8 Apr 2025, at 18:41, Fujii Masao wrote: > >> I noticed that the third argument of pg_get_process_memory_contexts() is named >> "retries" in pg_proc.dat, while the documentation refers to it as "timeout". > > I've committed this patch as it was obviously correct, thanks! Thanks a lot! Since pg_proc.dat was modified, do we need to bump the catalog version? >> Also, as I mentioned earlier, I encountered an issue when calling >> pg_get_process_memory_contexts() on the PID of a backend that had just >> encountered an error but hadn't finished rolling back. It led to >> the following situation: > > I reconfirmed that the bugfix that Rahila shared in [0] fixes this issue (and > will fix others like it, as it's not related to this patch in particular but is > a bug in DSM attaching). My plan is to take that for a more thorough review > and test tomorrow and see how far it can be safely backpatched. Thanks for > bringing this up, sorry about it getting a bit lost among all the emails. Appreciate your work on this! Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION