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 1vj3oe-005CCA-2y for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jan 2026 23:10:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vj3od-00F7aI-36 for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Jan 2026 23:10:16 +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.96) (envelope-from ) id 1vj3od-00F7aA-28 for pgsql-hackers@lists.postgresql.org; Thu, 22 Jan 2026 23:10:15 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vj3ob-000000001uq-1rhB for pgsql-hackers@postgresql.org; Thu, 22 Jan 2026 23:10:15 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-45c819ca0f1so1059820b6e.0 for ; Thu, 22 Jan 2026 15:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769123411; x=1769728211; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7IF4nl8hn3i+sjX3Bllnj2/V4n4zGuCreWy7Yx/q8Oo=; b=FX5WtZfKpCsih/PWhgKQjmtOY5HAbTb/wV4daZ9u7amBTF5gxQCMv4OuXvQ3J/V6YV 5IlQ4/6oAYyfwFP7UkcJ7ReIp0+Drcl+rg4iZ9HXr4puvNVbH6wxEeYvS0qa5NkZ+I+C 6rdc9oKV9xcZOdoEX6mJHpiQNwbuvy5OXFB3v8SxGAI1BhsHVbPWCppJpiCvB7WTMsDW WFwXlFvqLYrgdLoAM42Cg4cIny7Mdmk32auT/HVFRLvuJtygGlmqXhs4Xmk3o/q3BsDv HkN9MIx7XTerlKDdZoPPs48ufokMTUcH+OyGkMhgKQP6kCZfPa3P3gp9WbWehmCDDIVF BBqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769123411; x=1769728211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7IF4nl8hn3i+sjX3Bllnj2/V4n4zGuCreWy7Yx/q8Oo=; b=GfjCs75/KYA0uvkQYutP9veoTxi+eSoHrSXSF1yXqcjvMWCQSqC3u0Z5MTrka2pky/ HZhfYr6xbZ/4bpEHsOchtETJVbfWu7V3vlUvW+Ri8jXKVr6tDu18JqmQkGAYpBtKoZCr 4bpq0Y2gwnh7bhveKEVs5XA+JY+UE+4NTfdLVSqSqrmLpb4s100EE0uyiW8rEmCadCnY laoQvaGwC1QrN8cWmdV/CVGUpWNZy5rb0dnOOdXOqVZY9WE+qPHssyv6NF5XMfA62tyM 8ahN8aRFruc42inSnKWhUmBG/yFX8laTjFzi41dSVt41D1QYewcpKJfpB9c5JoX2EZBe B11A== X-Forwarded-Encrypted: i=1; AJvYcCX8VAFErnE2cg8n1Pgdv8DONMgOJr5Z8/qoX9ve7eL6QbEABp7v/PxE9LGmj0cNfTAxHKG0xG3akfX80iI9@postgresql.org X-Gm-Message-State: AOJu0Yw0cuXP2J8tLipvv8/h5RRntZg6jc6BWg77JtmpsUI5GTrq9Anv wkfmo0bpG5vziN2D1M02dCMUnYSEvn+ogeck87x1kPccHPVuxxDSKCBz X-Gm-Gg: AZuq6aISX1lp/e1DVBgJYa2yDeibSsdLf1faLmddUmLwCgz51pnKgDASn42I1/hy1V6 ZGoHF8botBOJSwOSLjxa5IHwbmSHz2v1KvvHIWvSLKWBkxAqvJPLaD6SYntXC8mjApP+dbuZR+E 6AWACeSDZ485Fb2MbyDwq52YhT5A38Avdj5g+macMZIZvxphtdJuLKkuuGLhrSNRagMKQuT+XlJ scEmgLUH/HcX1tBULEz9HJH1YXsJIkkKbs/vtGXIahNBC6LSU8WsErTQb49N7Dconds5F0KTtSl bETUlHucJTvqFiSLwuikbhE/84dFPCJ0YHHEhWqyrrhs6mwXBToRYUNm9sq5s0OgSud+lXFFHTY 3pB7shoC8pXCifU54L844UJyZZVhweMyO7iCY1mgrp9v2RESJFifHa+q805VADdvWZpVqtMGnIO S+F47SRwiz2TkMnpJ7NlRwp755l+6BpnNz/vy9YapQrPsjrDFLec1wKE5+jiwdXrIfoiOPYZeo5 e/n0ppsd5C2v/E= X-Received: by 2002:a05:6808:1b2b:b0:455:8364:7ddd with SMTP id 5614622812f47-45eb21bf379mr525118b6e.2.1769123411583; Thu, 22 Jan 2026 15:10:11 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 5614622812f47-45eb4120ca2sm322540b6e.9.2026.01.22.15.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 15:10:11 -0800 (PST) Date: Thu, 22 Jan 2026 17:10:08 -0600 From: Nathan Bossart To: Michael Paquier Cc: Anthonin Bonnefoy , PostgreSQL Hackers Subject: Re: Fix rounding method used to compute huge pages Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jan 23, 2026 at 08:04:29AM +0900, Michael Paquier wrote: > FWIW, we have always been kind of sloppy with slightly overestimating > the shmem size required in the backend code, and here it's just a one. > I don't see a strong need for a backpatch here. Of course, no > objections in adjusting that on HEAD. Agreed. > Nathan, you are planning to > take care of that as original author? This should fall under my > bucket as original committer, but as you were an author, feel free to > take priority here of course. I'll take care of it (likely tomorrow). -- nathan