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 1x3OOX-006Obj-0x for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2026 01:43:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x3OOW-00GHXQ-0T for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Sep 2026 01:43:36 +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.96) (envelope-from ) id 1x3OOV-00GHXI-2l for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2026 01:43:35 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x3OOU-00000004Lxz-0rX1 for pgsql-hackers@lists.postgresql.org; Mon, 07 Sep 2026 01:43:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6871hXCE150389; Sun, 6 Sep 2026 21:43:33 -0400 From: Tom Lane To: Michael Paquier cc: Postgres hackers Subject: Re: Remove toast_max_chunk_size from control file In-reply-to: References: <149283.1788744334@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Mon, 07 Sep 2026 10:34:50 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <150387.1788745413.1@sss.pgh.pa.us> Date: Sun, 06 Sep 2026 21:43:33 -0400 Message-ID: <150388.1788745413@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Requoting my previous message that you did not include: >> There may be an argument about somebody enforcing a new >> TOAST_OID_MAX_CHUNK_SIZE or EXTERN_TUPLES_PER_PAGE manually, of >> course, but while we claim that tweaks are possible in heaptoast.h, > I've never seen anybody actually do that. So yes, I agree that if > somebody has the idea to change this value manually, the control file > value makes sense to keep. It's just that I doubt that anybody is > actually doing that. :) Perhaps not, but the point of these disk-layout-compatibility fields in pg_control is to keep people from shooting themselves in the foot. I don't think it's that unlikely that someone would decide that four TOAST tuples per page isn't ideal, especially if they were running with non-default BLCKSZ. regards, tom lane