|
|
@ -1,4 +1,6 @@ |
|
|
|
\set HIDE_TOAST_COMPRESSION false |
|
|
|
\set HIDE_TOAST_COMPRESSION false |
|
|
|
|
|
|
|
-- ensure we get stable results regardless of installation's default |
|
|
|
|
|
|
|
SET default_toast_compression = 'pglz'; |
|
|
|
-- test creating table with compression method |
|
|
|
-- test creating table with compression method |
|
|
|
CREATE TABLE cmdata(f1 text COMPRESSION pglz); |
|
|
|
CREATE TABLE cmdata(f1 text COMPRESSION pglz); |
|
|
|
CREATE INDEX idx ON cmdata(f1); |
|
|
|
CREATE INDEX idx ON cmdata(f1); |
|
|
@ -245,6 +247,7 @@ CREATE TABLE cmdata2 (f1 text); |
|
|
|
--------+------+-----------+----------+---------+----------+-------------+--------------+------------- |
|
|
|
--------+------+-----------+----------+---------+----------+-------------+--------------+------------- |
|
|
|
f1 | text | | | | extended | lz4 | | |
|
|
|
f1 | text | | | | extended | lz4 | | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET default_toast_compression = 'pglz'; |
|
|
|
-- test alter compression method |
|
|
|
-- test alter compression method |
|
|
|
ALTER TABLE cmdata ALTER COLUMN f1 SET COMPRESSION lz4; |
|
|
|
ALTER TABLE cmdata ALTER COLUMN f1 SET COMPRESSION lz4; |
|
|
|
INSERT INTO cmdata VALUES (repeat('123456789', 4004)); |
|
|
|
INSERT INTO cmdata VALUES (repeat('123456789', 4004)); |
|
|
|