From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org, Dilip Kumar <dilipbalaut@gmail.com>
Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
Date: Wed, 26 May 2021 20:29:50 -0400
Message-ID: <1677426.1622075390@sss.pgh.pa.us> (raw)
In-Reply-To: <YK7kKhV1fyWdAynz@paquier.xyz>
References: <1666832.1622067703@sss.pgh.pa.us>
<202105262344.uo3thib7lpml@alvherre.pgsql>
<YK7kKhV1fyWdAynz@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> Yeah, having an extra test for partitioned tables would be a good
> idea.
We do have some coverage already via the pg_upgrade test.
> Could it be possible to have some tests for COMPRESSION DEFAULT? It
> seems to me that this should be documented as a supported keyword for
> CREATE/ALTER TABLE.
Uh, I did do both of those, no? (The docs treat "default" as another
possible value, not a keyword, even though it's a keyword internally.)
> --changing column storage should not impact the compression method
> --but the data should not be compressed
> ALTER TABLE cmdata2 ALTER COLUMN f1 TYPE varchar;
> +ALTER TABLE cmdata2 ALTER COLUMN f1 SET COMPRESSION pglz;
> This comment needs a refresh?
It's correct AFAICS. Maybe it needs a bit of editing for clarity,
but I'm not sure how to make it better. The point is that the
SET STORAGE just below disables compression of new values, no
matter what SET COMPRESSION says.
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, alvherre@alvh.no-ip.org, robertmhaas@gmail.com, pryzby@telsasoft.com, andres@anarazel.de, dilipbalaut@gmail.com
Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
In-Reply-To: <1677426.1622075390@sss.pgh.pa.us>
References: <1666832.1622067703@sss.pgh.pa.us> <202105262344.uo3thib7lpml@alvherre.pgsql> <YK7kKhV1fyWdAynz@paquier.xyz> <1677426.1622075390@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