Re: Small issues with CREATE TABLE COMPRESSION
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Postgres hackers <pgsql-hackers@lists.postgresql.org>,
Jacob Champion <pchampion@vmware.com>
Date: 2021-05-05T13:59:41Z
Lists: pgsql-hackers
On Wed, May 5, 2021 at 7:09 AM Dilip Kumar <dilipbalaut@gmail.com> wrote: > So basically, if we have to write this test case in pg_dump then we > will have to use lz4 which means it will generate different output > --with-lz4 vs --without-lz4. With a simple regress test it easy to > deal with such cases by keeping multiple .out files but I am not sure > can we do this easily with pg_dump test without adding much > complexity? TAP tests have a facility for conditionally skipping tests; see perldoc Test::More. That's actually superior to what you can do with pg_regress. We'd need to come up with some logic to determine when to skip or not, though. Perhaps the easiest method would be to have the relevant Perl script try to create a table with an lz4 column. If that works, then perform the LZ4-based tests. If it fails, check the error message. If it says anything that LZ4 is not supported by this build, skip those tests. If it says anything else, die. -- Robert Haas EDB: http://www.enterprisedb.com
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