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: Robert Haas <robertmhaas@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Justin Pryzby <pryzby@telsasoft.com>,
Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org,
Dilip Kumar <dilipbalaut@gmail.com>
Date: 2021-05-26T19:31:28Z
Lists: pgsql-hackers
Attachments
- 0004-allow-set-compression-default.patch (text/x-diff) patch 0004
Robert Haas <robertmhaas@gmail.com> writes: > On Wed, May 26, 2021 at 11:13 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> * As things stand here, once you've applied ALTER ... SET COMPRESSION >> to select a specific method, there is no way to undo that and go >> back to the use-the-default setting. All you can do is change to >> explicitly select the other method. Should we invent "ALTER ... >> SET COMPRESSION default" or the like to cover that? > Yes. Irreversible catalog changes are bad. Here's an add-on 0004 that does that, and takes care of assorted silliness in the grammar and docs --- did you know that this patch caused alter table foo alter column bar set ; to be allowed? I think this is about ready to commit now (though I didn't yet nuke GetDefaultToastCompression). 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