From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Remove toast_max_chunk_size from control file
Date: Sun, 06 Sep 2026 21:43:33 -0400
Message-ID: <150388.1788745413@sss.pgh.pa.us> (raw)
In-Reply-To: <ap4UunPevJdqg9d1@paquier.xyz>
References: <ap4Q7r5J6sY_eb4z@paquier.xyz>
<149283.1788744334@sss.pgh.pa.us>
<ap4UunPevJdqg9d1@paquier.xyz>
Michael Paquier <michael@paquier.xyz> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz
Subject: Re: Remove toast_max_chunk_size from control file
In-Reply-To: <150388.1788745413@sss.pgh.pa.us>
References: <ap4Q7r5J6sY_eb4z@paquier.xyz> <149283.1788744334@sss.pgh.pa.us> <ap4UunPevJdqg9d1@paquier.xyz> <150388.1788745413@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox