public inbox for [email protected]
help / color / mirror / Atom feedFrom: Boris Mironov <[email protected]>
To: [email protected] <[email protected]>
Subject: Request for cleaner explanation of default_toast_compression parameter
Date: Sun, 29 Mar 2026 05:37:47 +0000
Message-ID: <PH0PR08MB7020D7A95CD8F730946B2DA08855A@PH0PR08MB7020.namprd08.prod.outlook.com> (raw)
Hello,
I would like to request a cleaner explanation of default_toast_compression parameter. It could be just me, but following sentence could be misread:
"This variable sets the default TOAST<https://www.postgresql.org/docs/18/storage-toast.html; compression method for values of compressible columns."
(https://www.postgresql.org/docs/18/runtime-config-client.html#GUC-DEFAULT-TOAST-COMPRESSION)
The way I read it (and perhaps I'm not the only one): "If column value is too big to be stored in-row it goes to TOAST and gets compressed with algorithm set by default_toast_compression parameter"
This leads to the suggestion that initially this column gets compressed by pglz as default algo and if tuple is bigger than 2000 bytes, the column gets compressed with algo defined by default_toast_compression and saved into the TOAST table. This raises suggestion about compressing same string data twice when default_toast_compression=lz4:
1.
in an attempt to save string in-tuple with pglz;
2.
with lz4 to save it in the TOAST table.
Perhaps something like following will avoid misreading:
"This variable sets the default compression method for values of compressible columns to be stored in-tuple or TOAST table."
Best regards,
Boris
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Request for cleaner explanation of default_toast_compression parameter
In-Reply-To: <PH0PR08MB7020D7A95CD8F730946B2DA08855A@PH0PR08MB7020.namprd08.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox