Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm3uT-0003o2-RF for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 00:30:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lm3uR-0001cD-Mu for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 00:29:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm3uR-0001ZJ-Ey for pgsql-hackers@lists.postgresql.org; Thu, 27 May 2021 00:29:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm3uM-0004a9-U6 for pgsql-hackers@postgresql.org; Thu, 27 May 2021 00:29:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 14R0ToWC1677427; Wed, 26 May 2021 20:29:50 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , Robert Haas , Justin Pryzby , Andres Freund , pgsql-hackers@postgresql.org, Dilip Kumar Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size? In-reply-to: References: <1666832.1622067703@sss.pgh.pa.us> <202105262344.uo3thib7lpml@alvherre.pgsql> Comments: In-reply-to Michael Paquier message dated "Thu, 27 May 2021 09:13:30 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1677425.1622075390.1@sss.pgh.pa.us> Date: Wed, 26 May 2021 20:29:50 -0400 Message-ID: <1677426.1622075390@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier 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