File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11\set HIDE_TOAST_COMPRESSION false
2+ -- ensure we get stable results regardless of installation's default
3+ SET default_toast_compression = 'pglz';
24-- test creating table with compression method
35CREATE TABLE cmdata(f1 text COMPRESSION pglz);
46CREATE INDEX idx ON cmdata(f1);
@@ -245,6 +247,7 @@ CREATE TABLE cmdata2 (f1 text);
245247--------+------+-----------+----------+---------+----------+-------------+--------------+-------------
246248 f1 | text | | | | extended | lz4 | |
247249
250+ SET default_toast_compression = 'pglz';
248251-- test alter compression method
249252ALTER TABLE cmdata ALTER COLUMN f1 SET COMPRESSION lz4;
250253INSERT INTO cmdata VALUES (repeat('123456789', 4004));
Original file line number Diff line number Diff line change 11\set HIDE_TOAST_COMPRESSION false
2+ -- ensure we get stable results regardless of installation's default
3+ SET default_toast_compression = 'pglz';
24-- test creating table with compression method
35CREATE TABLE cmdata(f1 text COMPRESSION pglz);
46CREATE INDEX idx ON cmdata(f1);
@@ -241,6 +243,7 @@ CREATE TABLE cmdata2 (f1 text);
241243--------+------+-----------+----------+---------+----------+-------------+--------------+-------------
242244 f1 | text | | | | extended | pglz | |
243245
246+ SET default_toast_compression = 'pglz';
244247-- test alter compression method
245248ALTER TABLE cmdata ALTER COLUMN f1 SET COMPRESSION lz4;
246249ERROR: unsupported LZ4 compression method
Original file line number Diff line number Diff line change 11\set HIDE_TOAST_COMPRESSION false
22
3+ -- ensure we get stable results regardless of installation's default
4+ SET default_toast_compression = ' pglz' ;
5+
36-- test creating table with compression method
47CREATE TABLE cmdata (f1 text COMPRESSION pglz);
58CREATE INDEX idx ON cmdata(f1);
@@ -100,6 +103,7 @@ SET default_toast_compression = 'lz4';
100103DROP TABLE cmdata2;
101104CREATE TABLE cmdata2 (f1 text );
102105\d+ cmdata2
106+ SET default_toast_compression = ' pglz' ;
103107
104108-- test alter compression method
105109ALTER TABLE cmdata ALTER COLUMN f1 SET COMPRESSION lz4;
You can’t perform that action at this time.
0 commit comments