Re: Small issues with CREATE TABLE COMPRESSION
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>, Jacob Champion <pchampion@vmware.com>
Date: 2021-05-08T08:37:58Z
Lists: pgsql-hackers
On Thu, May 06, 2021 at 09:33:53PM +0530, Dilip Kumar wrote: > On Thu, May 6, 2021 at 5:42 PM Michael Paquier <michael@paquier.xyz> wrote: > > > > On Thu, May 06, 2021 at 10:45:53AM +0530, Dilip Kumar wrote: > > > Thanks, Robert and Michael for your input. I will try to understand > > > how it is done in the example shared by you and come up with the test > > > once I get time. I assume this is not something urgent. > > > > Thanks. FWIW, I'd rather see this gap closed asap, as features should > > come with proper tests IMO. > > I have done this please find the attached patch. No objections to take the approach to mark the lz4-related test with a special flag and skip them. I have three comments: - It would be good to document this new flag. See the comment block on top of %dump_test_schema_runs. - There should be a test for --no-toast-compression. You can add a new command in %pgdump_runs, then unmatch the expected output with the option. - I would add one test case with COMPRESSION pglz somewhere to check after the case of ALTER TABLE COMPRESSION commands not generated as this depends on default_toast_compression. A second test I'd add is a materialized view with a column switched to use lz4 as compression method with an extra ALTER command in create_sql. > I don't have much idea about the MSVC script, but I will try to see > some other parameters and fix this. Thanks! I can dive into that if that's an issue. Let's make things compatible with what upstream provides, meaning that we should have some documentation pointing to the location of their deliverables, equally to what we do for the Perl and OpenSSL dependencies for example. -- Michael
Commits
-
Add support for LZ4 build in MSVC scripts
- 9ca40dcd4d0c 14.0 landed
-
Add more TAP tests for pg_dump with attribute compression
- 63db0ac3f9e6 14.0 landed
-
doc: Fix some gaps with the documentation related to LZ4
- 02a93e7ef961 14.0 landed
-
Fix incorrect error code for CREATE/ALTER TABLE COMPRESSION
- 9681f2160dcb 14.0 landed
-
Additional doc fixes for configurable TOAST compression.
- 448b02c00515 14.0 landed
-
docs: Clarify how ALTER TABLE .. SET COMPRESSION works.
- 2d0f66240263 14.0 landed