Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Robert Haas <robertmhaas@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>,
Michael Paquier <michael@paquier.xyz>,
Andres Freund <andres@anarazel.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-05-27T20:29:44Z
Lists: pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes: > On Thu, May 27, 2021 at 7:25 AM Robert Haas <robertmhaas@gmail.com> wrote: >> To say that nobody cares about that is to deem the >> feature useless. Maybe that's what Tom thinks, but it's not what I >> think. > I don't think that follows at all. Yeah. My belief here is that users might bother to change default_toast_compression, or that we might do it for them in a few years, but the gains from doing so are going to be only incremental. That being the case, most DBAs will be content to allow the older compression method to age out of their databases through routine row updates. The idea that somebody is going to be excited enough about this to run a downtime-inducing VACUUM FULL doesn't really pass the smell test. That doesn't make LZ4 compression useless, by any means, but it does suggest that we shouldn't be adding overhead to VACUUM FULL for the purpose of easing instantaneous switchovers. I'll refrain from re-telling old war stories about JPEG/GIF/PNG, but I do have real-world experience with compression algorithm changes. IME you need an integer-multiples type of improvement to get peoples' attention, and LZ4 isn't going to offer that, except maybe in cherry-picked examples. regards, tom lane
Commits
-
Remove forced toast recompression in VACUUM FULL/CLUSTER
- dbab0c07e5ba 14.0 landed
-
Rethink definition of pg_attribute.attcompression.
- e6241d8e030f 14.0 landed
-
Fix memory leak when de-toasting compressed values in VACUUM FULL/CLUSTER
- fb0f5f0172ed 14.0 landed
-
Re-order pg_attribute columns to eliminate some padding space.
- f5024d8d7b04 14.0 landed
-
Add more TAP tests for pg_dump with attribute compression
- 63db0ac3f9e6 14.0 cited