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 1u4nft-007V6y-54 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 21:18:34 +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 1u4nfq-00HHpc-CE for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Apr 2025 21:18:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u4nfq-00HHmf-1P for pgsql-hackers@lists.postgresql.org; Tue, 15 Apr 2025 21:18:30 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u4nfn-000HML-1n for pgsql-hackers@postgresql.org; Tue, 15 Apr 2025 21:18:30 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id E678632B2EC for ; Tue, 15 Apr 2025 23:18:27 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id B6C9432C5FD; Tue, 15 Apr 2025 23:18:27 +0200 (CEST) Received: from s473.loopia.se (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id B4A987CE96C; Tue, 15 Apr 2025 23:18:27 +0200 (CEST) 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 s979.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id rWCf2JpmzAVV; Tue, 15 Apr 2025 23:18:27 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id 575B010BC406; Tue, 15 Apr 2025 23:18:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1744751907; bh=i7RI77NfvJaaR4bhfd6TD3qV0Z7iOl9eUpdMJgb9p0Y=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=ozCdj6F2U+FzLqJWnkyNtL6DWke5DsnJ6h5g76eSUwzp1xcuCjn2ObE7Ga1cJO9Ze YnAZLR8yp4/2h5zCDWyOKrHV/v+i4E2NXrOq5kU4mDFsWXJE3Ao/sYl6ZxPlfGOarH ECDfK8D/3fEg+OyQAeodOlmbxeAKN7OMrN+cPRY7F5Cbte4Xb/ecI27d/eei9QxyrY 284hPz3YnOBxSxELqgYUqrx7j6K/iQM62kNU35aP4g499so1el3B3uZFVEjMYW0fI/ HeSS28hZWkYwnnYXKl8pb5DJBIoVrh2Ot0Jk4cuP5sUSw2NPQET0NWFH0IAEP7Gk/X 41wqgpX/I2VWw== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: Align memory context level numbering in pg_log_backend_memory_contexts() From: Daniel Gustafsson In-Reply-To: Date: Tue, 15 Apr 2025 23:18:16 +0200 Cc: torikoshia , PostgreSQL Hackers Content-Transfer-Encoding: 7bit Message-Id: <81B10568-B4A1-46C0-9809-2F8E06AB8C7B@yesql.se> References: <395ea5d4fe190480efa95bf533485c70@oss.nttdata.com> To: David Rowley 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 15 Apr 2025, at 23:03, David Rowley wrote: > My vote is to make the levels 1-based in all locations where we output > the context information. I agree with this, pg_get_process_memory_contexts() also use 1-based levels fwiw. -- Daniel Gustafsson