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-05T10:30:45Z
Lists: pgsql-hackers
On Wed, May 05, 2021 at 01:41:03PM +0530, Dilip Kumar wrote: > I think we already have such test cases at least through pg_upgrade. > Basically, if you see in compression.sql we are not dropping the table > so that pg_upgrade and dump them and test. So if test run --with-lz4 > then in pg_upgrade dump we can see ALTER TABLE... SET COMPRESSION type > of commands. The TAP tests of pg_dump are much more picky than what pg_upgrade is able to do. With the existing set of tests in place, what you are able to detect is that pg_upgrade does not *break* if there are tables with attributes using various compression types, but that would not be enough to make sure that the correct compression method is *applied* depending on the context expected (default_toast_compression + the attribute compression + pg_dump options), which is what the TAP tests of pg_dump are able to correctly detect if extended in an appropriate way. With what's on HEAD, we would easily miss any bugs introduced in pg_dump that change the set of commands generated depending on the options given by a user, but still allow pg_upgrade to work correctly. For example, there could be issues where we finish by setting up the incorrect compression option, with pg_upgrade happily finishing. There is a gap in the test coverage here. -- 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