disable compress table with guc support_extended_features
This commit is contained in:
@ -1284,6 +1284,7 @@ static List* AddDefaultOptionsIfNeed(List* options, const char relkind, CreateSt
|
||||
ereport(ERROR, (errcode(ERRCODE_INVALID_OPTION),
|
||||
errmsg("There is a conflict caused by storage_type and orientation")));
|
||||
}
|
||||
|
||||
bool noSupportTable = segment || isCStore || isTsStore || relkind != RELKIND_RELATION ||
|
||||
stmt->relation->relpersistence == RELPERSISTENCE_UNLOGGED ||
|
||||
stmt->relation->relpersistence == RELPERSISTENCE_TEMP ||
|
||||
@ -19703,6 +19704,18 @@ bool static transformCompressedOptions(Relation rel, bytea* relOption, List* def
|
||||
return false;
|
||||
}
|
||||
|
||||
if (g_instance.attr.attr_common.support_extended_features) {
|
||||
ereport(WARNING,
|
||||
(errmsg("The compressed relation you are using is an unofficial supported extended feature."))
|
||||
);
|
||||
} else {
|
||||
ereport(ERROR,
|
||||
(errmsg("The compressed relation you are trying to create or alter "
|
||||
"is an unofficial supported extended feature."),
|
||||
errhint("Turn on GUC 'support_extended_features' to enable it."))
|
||||
);
|
||||
}
|
||||
|
||||
/* If the relkind doesn't support compressed options, check if delist contains compressed options.
|
||||
* If does, throw exception.
|
||||
*/
|
||||
|
||||
@ -3093,6 +3093,19 @@ void SetOneOfCompressOption(DefElem* defElem, TableCreateSupport* tableCreateSup
|
||||
|
||||
void CheckCompressOption(TableCreateSupport *tableCreateSupport)
|
||||
{
|
||||
if (tableCreateSupport->compressType) {
|
||||
if (g_instance.attr.attr_common.support_extended_features) {
|
||||
ereport(WARNING,
|
||||
(errmsg("The compressed relation you are using is an unofficial supported extended feature."))
|
||||
);
|
||||
} else {
|
||||
ereport(ERROR,
|
||||
(errmsg("The compressed relation you are trying to create "
|
||||
"is an unofficial supported extended feature."),
|
||||
errhint("Turn on GUC 'support_extended_features' to enable it."))
|
||||
);
|
||||
}
|
||||
}
|
||||
#ifdef ENABLE_FINANCE_MODE
|
||||
if (HasCompressOption(tableCreateSupport)) {
|
||||
ereport(ERROR, (errcode(ERRCODE_INVALID_OPTION),
|
||||
|
||||
@ -29,6 +29,7 @@ create table tab_segment_off(a int) with(segment=off);
|
||||
ERROR: Only support segment storage type while parameter enable_segment is ON.
|
||||
create table tab_segment_on(a int) with(segment=on);
|
||||
create table tab_segment_compress(a int) with(compresstype=2,compress_chunk_size=512,compress_level=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compresstype can not be used in segment table.
|
||||
\d+ tab_segment;
|
||||
Table "public.tab_segment"
|
||||
|
||||
@ -138,6 +138,9 @@ begin
|
||||
create table t_rowcompress_pglz_compresslevel(id int) with (compresstype=1,compress_level=2);
|
||||
end;
|
||||
/
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CONTEXT: SQL statement "create table t_rowcompress_pglz_compresslevel(id int) with (compresstype=1,compress_level=2)"
|
||||
PL/pgSQL function inline_code_block line 6 at SQL statement
|
||||
NOTICE: SQLSTATE = 02002, SQLCODE = 33554560, SQLERRM = compress_level should be used with ZSTD algorithm.
|
||||
-- sqlexception
|
||||
declare
|
||||
@ -179,6 +182,9 @@ begin
|
||||
a := 1/0;
|
||||
end;
|
||||
/
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CONTEXT: SQL statement "create table t_rowcompress_pglz_compresslevel(id int) with (compresstype=1,compress_level=2)"
|
||||
PL/pgSQL function inline_code_block line 11 at SQL statement
|
||||
NOTICE: SQLSTATE = 02002, SQLCODE = 33554560, SQLERRM = compress_level should be used with ZSTD algorithm.
|
||||
declare
|
||||
a int;
|
||||
|
||||
@ -4,26 +4,31 @@ CREATE SCHEMA alter_compress_params_schema;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_cl_30 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_cl_30 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_cl_30 SET (compress_level = 30); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_cl_30;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_ccs_512 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512 SET (compress_chunk_size = 512); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512_cpc_7 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_ccs_512_cpc_7 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512_cpc_7 SET (compress_chunk_size = 512, compress_prealloc_chunks = 7); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_ccs_512_cpc_7;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_cbc_1 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1 SET (compress_byte_convert = true); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1_cdc_1 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_cbc_1_cdc_1 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1_cdc_1 SET (compress_byte_convert = true, compress_diff_convert = true); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_cbc_1_cdc_1;
|
||||
-- the new compression parameters is out of the value range
|
||||
@ -66,6 +71,7 @@ DROP TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_1023 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_1023 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_1023 SET (compresstype = 1, compress_chunk_size = 1023); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: invalid compress_chunk_size 1023, must be one of 512, 1024, 2048 or 4096
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_1023;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_512_cpc_8 (id int, value varchar);
|
||||
@ -93,6 +99,7 @@ DROP TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_cbc_
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_4096_cpc_2 (id int, value varchar);
|
||||
INSERT INTO alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_4096_cpc_2 SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_4096_cpc_2 SET (compresstype = 1, compress_chunk_size = 4096, compress_prealloc_chunks = 2); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: invalid compress_prealloc_chunks 2, must be less than 2 for uncompress_astore_to_compresstype_1_ccs_4096_cpc_2
|
||||
DROP TABLE alter_compress_params_schema.uncompress_astore_to_compresstype_1_ccs_4096_cpc_2;
|
||||
CREATE TABLE alter_compress_params_schema.uncompress_to_compresstype_3 (id int, value varchar);
|
||||
@ -105,6 +112,7 @@ DROP TABLE alter_compress_params_schema.uncompress_to_compresstype_3;
|
||||
CREATE TABLE alter_compress_params_schema.alter_column_table_compressed_options (id int, value varchar) WITH (ORIENTATION = column);
|
||||
INSERT INTO alter_compress_params_schema.alter_column_table_compressed_options SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.alter_column_table_compressed_options SET (compresstype = 1); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: Un-support feature
|
||||
DETAIL: Option "compresstype" doesn't allow ALTER
|
||||
DROP TABLE alter_compress_params_schema.alter_column_table_compressed_options;
|
||||
@ -112,6 +120,7 @@ DROP TABLE alter_compress_params_schema.alter_column_table_compressed_options;
|
||||
CREATE TABLE alter_compress_params_schema.alter_segment_table_compressed_options (id int, value varchar) WITH (segment = on);
|
||||
INSERT INTO alter_compress_params_schema.alter_segment_table_compressed_options SELECT generate_series(1,5), 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb';
|
||||
ALTER TABLE alter_compress_params_schema.alter_segment_table_compressed_options SET (compresstype = 1); -- fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: Un-support feature
|
||||
DETAIL: Option "compresstype" doesn't allow ALTER
|
||||
DROP TABLE alter_compress_params_schema.alter_segment_table_compressed_options;
|
||||
@ -119,15 +128,19 @@ DROP TABLE alter_compress_params_schema.alter_segment_table_compressed_options;
|
||||
CREATE TABLE alter_compress_params_schema.segment_table (id int, c1 text) WITH( segment=on);
|
||||
CREATE INDEX alter_compress_params_schema.uncompressed_index_test ON alter_compress_params_schema.segment_table(c1);
|
||||
ALTER INDEX alter_compress_params_schema.uncompressed_index_test SET (compresstype = 1); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: Un-support feature
|
||||
DETAIL: Option "compresstype" doesn't allow ALTER
|
||||
DROP INDEX alter_compress_params_schema.uncompressed_index_test;
|
||||
DROP TABLE alter_compress_params_schema.segment_table;
|
||||
CREATE TABLE alter_compress_params_schema.row_table (id int, c1 text);
|
||||
CREATE INDEX alter_compress_params_schema.compressed_index_test ON alter_compress_params_schema.row_table(c1) WITH (compresstype = 1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ALTER INDEX alter_compress_params_schema.compressed_index_test SET (compresstype = 2, compress_level = 15); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compresstype OPTION is not supported
|
||||
ALTER INDEX alter_compress_params_schema.compressed_index_test SET (compresstype = 0); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compresstype OPTION is not supported
|
||||
DROP INDEX alter_compress_params_schema.compressed_index_test;
|
||||
DROP TABLE alter_compress_params_schema.row_table;
|
||||
@ -138,6 +151,7 @@ ERROR: permission denied: "pg_class" is a system catalog
|
||||
CREATE TABLE alter_compress_params_schema.uncompressed_table_compresstype_1 (id int, c1 text);
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_table_compresstype_1 SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_table_compresstype_1 SET (compresstype = 1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.uncompressed_table_compresstype_1
|
||||
Table "alter_compress_params_schema.uncompressed_table_compresstype_1"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -179,6 +193,7 @@ DROP TABLE alter_compress_params_schema.uncompressed_table_compresstype_1;
|
||||
CREATE TABLE alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30 (id int, c1 text);
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30 SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30 SET (compresstype = 2, compress_level = 30);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30
|
||||
Table "alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -220,6 +235,7 @@ DROP TABLE alter_compress_params_schema.uncompressed_table_compresstype_2_cl_30;
|
||||
CREATE TABLE alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_2048_cpc_3 (id int, c1 text);
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_2048_cpc_3 SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_2048_cpc_3 SET (compresstype = 2, compress_level = 30, compress_chunk_size = 2048, compress_prealloc_chunks = 3);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_2048_cpc_3
|
||||
Table "alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_2048_cpc_3"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -261,6 +277,7 @@ DROP TABLE alter_compress_params_schema.uncompressed_compresstype_2_cl_30_ccs_20
|
||||
CREATE TABLE alter_compress_params_schema.uncompressed_table_all_options (id int, c1 text);
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_table_all_options SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_table_all_options SET (compresstype = 2, compress_level = 30, compress_chunk_size = 512, compress_prealloc_chunks = 6, compress_byte_convert = true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.uncompressed_table_all_options
|
||||
Table "alter_compress_params_schema.uncompressed_table_all_options"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -320,6 +337,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_partitioned_compresstype_1
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_compresstype_1 SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_compresstype_1 SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_partitioned_compresstype_1 SET (compresstype = 1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_partitioned_compresstype_1_season1';
|
||||
relname | reloptions
|
||||
-------------------------------------------------+-------------------------------------------------
|
||||
@ -385,6 +403,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_partitioned_cl_10_ccs_2048
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_cl_10_ccs_2048_cpc_3 SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_cl_10_ccs_2048_cpc_3 SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_partitioned_cl_10_ccs_2048_cpc_3 SET (compresstype = 2, compress_level = 30, compress_chunk_size = 2048, compress_prealloc_chunks = 3);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_partitioned_cl_10_ccs_2048_cpc_3_season1';
|
||||
relname | reloptions
|
||||
-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------
|
||||
@ -450,6 +469,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_partitioned_all_options SE
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_all_options SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_partitioned_all_options SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_partitioned_all_options SET (compresstype = 2, compress_level = 30, compress_chunk_size = 512, compress_prealloc_chunks = 7, compress_byte_convert = true, compress_diff_convert = true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_partitioned_all_options_season1';
|
||||
relname | reloptions
|
||||
----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@ -520,6 +540,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_compresstyp
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_compresstype_1 values ('201903', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_compresstype_1 values ('201903', '2', generate_series(1, 10));
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_subpartitioned_compresstype_1 SET (compresstype = 1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_subpartitioned_compresstype_1_201901_a';
|
||||
relname | reloptions
|
||||
-----------------------------------------------------+-------------------------------------------------
|
||||
@ -588,6 +609,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_cl_10_ccs_2
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_cl_10_ccs_2048_cpc_3 values ('201903', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_cl_10_ccs_2048_cpc_3 values ('201903', '2', generate_series(1, 10));
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_subpartitioned_cl_10_ccs_2048_cpc_3 SET (compresstype = 2, compress_level = 10, compress_chunk_size = 2048, compress_prealloc_chunks = 3);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_subpartitioned_cl_10_ccs_2048_cpc_3_201901_a';
|
||||
relname | reloptions
|
||||
-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------
|
||||
@ -656,6 +678,7 @@ INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_all_options
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_all_options values ('201903', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.uncompressed_subpartitioned_all_options values ('201903', '2', generate_series(1, 10));
|
||||
ALTER TABLE alter_compress_params_schema.uncompressed_subpartitioned_all_options SET (compresstype = 2, compress_level = 30, compress_chunk_size = 512, compress_prealloc_chunks = 7, compress_byte_convert = true, compress_diff_convert = true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'uncompressed_subpartitioned_all_options_201901_a';
|
||||
relname | reloptions
|
||||
--------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@ -714,8 +737,10 @@ begin
|
||||
end;
|
||||
$BODY$;
|
||||
CREATE TABLE alter_compress_params_schema.compressed_table_compresstype_2_cl_30 (id int, c1 text) with (compresstype = 1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.compressed_table_compresstype_2_cl_30 SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.compressed_table_compresstype_2_cl_30 SET (compresstype = 2, compress_level = 30);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.compressed_table_compresstype_2_cl_30
|
||||
Table "alter_compress_params_schema.compressed_table_compresstype_2_cl_30"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -755,8 +780,10 @@ SELECT nchunks, chunknos FROM pg_catalog.compress_address_details('alter_compres
|
||||
|
||||
DROP TABLE alter_compress_params_schema.compressed_table_compresstype_2_cl_30;
|
||||
CREATE TABLE alter_compress_params_schema.all_options_table_compresstype_1_cpc_1 (id int, c1 text) with (compresstype = 2, compress_level = 30, compress_chunk_size = 512, compress_prealloc_chunks = 7, compress_byte_convert = true, compress_diff_convert = true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_table_compresstype_1_cpc_1 SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.all_options_table_compresstype_1_cpc_1 SET (compresstype = 1, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 1, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.all_options_table_compresstype_1_cpc_1
|
||||
Table "alter_compress_params_schema.all_options_table_compresstype_1_cpc_1"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -823,11 +850,13 @@ PARTITION BY RANGE(sales_date)
|
||||
PARTITION compressed_partitioned_compresstype_2_cl_30_ccs_512_season3 VALUES LESS THAN('2021-10-01 00:00:00'),
|
||||
PARTITION compressed_partitioned_compresstype_2_cl_30_ccs_512_season4 VALUES LESS THAN(MAXVALUE)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.compressed_partitioned_compresstype_2_cl_30_ccs_512 SELECT generate_series(1, 10), 'session1 item', '2021-02-01 00:00:00', 1000, '711';
|
||||
INSERT INTO alter_compress_params_schema.compressed_partitioned_compresstype_2_cl_30_ccs_512 SELECT generate_series(1, 10), 'session2 item', '2021-05-01 00:00:00', 1000, '722';
|
||||
INSERT INTO alter_compress_params_schema.compressed_partitioned_compresstype_2_cl_30_ccs_512 SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.compressed_partitioned_compresstype_2_cl_30_ccs_512 SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.compressed_partitioned_compresstype_2_cl_30_ccs_512 SET (compresstype = 2, compress_level = 30, compress_chunk_size = 512);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CHECKPOINT;
|
||||
select relname, reloptions from pg_partition where relname = 'compressed_partitioned_compresstype_2_cl_30_ccs_512_season1';
|
||||
relname | reloptions
|
||||
@ -902,11 +931,13 @@ PARTITION BY RANGE(sales_date)
|
||||
PARTITION all_options_partitioned_compresstype_1_cpc_1_season3 VALUES LESS THAN('2021-10-01 00:00:00'),
|
||||
PARTITION all_options_partitioned_compresstype_1_cpc_1_season4 VALUES LESS THAN(MAXVALUE)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_compresstype_1_cpc_1 SELECT generate_series(1, 10), 'session1 item', '2021-02-01 00:00:00', 1000, '711';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_compresstype_1_cpc_1 SELECT generate_series(1, 10), 'session2 item', '2021-05-01 00:00:00', 1000, '722';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_compresstype_1_cpc_1 SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_compresstype_1_cpc_1 SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.all_options_partitioned_compresstype_1_cpc_1 SET (compresstype = 1, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 1, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CHECKPOINT;
|
||||
select relname, reloptions from pg_partition where relname = 'all_options_partitioned_compresstype_1_cpc_1_season1';
|
||||
relname | reloptions
|
||||
@ -973,11 +1004,13 @@ PARTITION BY LIST (month_code) SUBPARTITION BY LIST (dept_code)
|
||||
SUBPARTITION all_options_subpartitioned_compresstype_1_cpc_1_201902_b VALUES ( '2' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1 values ('201902', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1 values ('201902', '2', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1 values ('201903', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1 values ('201903', '2', generate_series(1, 10));
|
||||
ALTER TABLE alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1 SET (compresstype = 1, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 1, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CHECKPOINT;
|
||||
select relname, reloptions from pg_partition where relname = 'all_options_subpartitioned_compresstype_1_cpc_1_201901_a';
|
||||
relname | reloptions
|
||||
@ -1037,8 +1070,10 @@ SELECT count(*) FROM compress_statistic_info(compress_func_findpath('alter_compr
|
||||
DROP TABLE alter_compress_params_schema.all_options_subpartitioned_compresstype_1_cpc_1;
|
||||
-- set compressed table to uncompressed table
|
||||
CREATE TABLE alter_compress_params_schema.all_options_table_uncompressed (id int, c1 text) with (compresstype = 2, compress_level = 30, compress_chunk_size = 512, compress_prealloc_chunks = 7, compress_byte_convert = true, compress_diff_convert = true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_table_uncompressed SELECT generate_series(1, 10), 'fsfsfsfsfsfsfsfsfsfsfsfssfsf';
|
||||
ALTER TABLE alter_compress_params_schema.all_options_table_uncompressed SET (compresstype = 0, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 0, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ alter_compress_params_schema.all_options_table_uncompressed
|
||||
Table "alter_compress_params_schema.all_options_table_uncompressed"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -1085,11 +1120,13 @@ PARTITION BY RANGE(sales_date)
|
||||
PARTITION all_options_partitioned_uncompressed_season3 VALUES LESS THAN('2021-10-01 00:00:00'),
|
||||
PARTITION all_options_partitioned_uncompressed_season4 VALUES LESS THAN(MAXVALUE)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_uncompressed SELECT generate_series(1, 10), 'session1 item', '2021-02-01 00:00:00', 1000, '711';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_uncompressed SELECT generate_series(1, 10), 'session2 item', '2021-05-01 00:00:00', 1000, '722';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_uncompressed SELECT generate_series(1, 10), 'session3 item', '2021-08-01 00:00:00', 1000, '733';
|
||||
INSERT INTO alter_compress_params_schema.all_options_partitioned_uncompressed SELECT generate_series(1, 10), 'session4 item', '2021-11-01 00:00:00', 1000, '744';
|
||||
ALTER TABLE alter_compress_params_schema.all_options_partitioned_uncompressed SET (compresstype = 0, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 0, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'all_options_partitioned_uncompressed_season1';
|
||||
relname | reloptions
|
||||
----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@ -1155,11 +1192,13 @@ PARTITION BY LIST (month_code) SUBPARTITION BY LIST (dept_code)
|
||||
SUBPARTITION all_options_subpartitioned_uncompressed_201902_b VALUES ( '2' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_uncompressed values ('201902', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_uncompressed values ('201902', '2', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_uncompressed values ('201903', '1', generate_series(1, 10));
|
||||
INSERT INTO alter_compress_params_schema.all_options_subpartitioned_uncompressed values ('201903', '2', generate_series(1, 10));
|
||||
ALTER TABLE alter_compress_params_schema.all_options_subpartitioned_uncompressed SET (compresstype = 0, compress_level = 0, compress_chunk_size = 4096, compress_prealloc_chunks = 0, compress_byte_convert = false, compress_diff_convert = false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select relname, reloptions from pg_partition where relname = 'all_options_subpartitioned_uncompressed_201901_a';
|
||||
relname | reloptions
|
||||
--------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
create schema normal_test;
|
||||
CREATE TABLE normal_test.tbl_pc(id int, c1 text) WITH(compresstype=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ normal_test.tbl_pc
|
||||
Table "normal_test.tbl_pc"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -38,12 +39,17 @@ select count(*) from normal_test.tbl_pc where id < 100;
|
||||
|
||||
-- normal index
|
||||
create index on normal_test.tbl_pc(id) WITH (compresstype=2,compress_chunk_size=1024);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter index normal_test.tbl_pc_id_idx set (compresstype=1); --failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compresstype OPTION is not supported
|
||||
alter index normal_test.tbl_pc_id_idx set (compress_chunk_size=2048); --failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compress_chunk_size OPTION is not supported
|
||||
alter index normal_test.tbl_pc_id_idx set (compress_prealloc_chunks=2); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter index normal_test.tbl_pc_id_idx set (compress_level=2); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
set enable_seqscan = off;
|
||||
set enable_bitmapscan = off;
|
||||
select count(*) from normal_test.tbl_pc;
|
||||
@ -63,6 +69,7 @@ CREATE TABLE normal_test.tbl_partition(id int) WITH(compresstype=2,compress_chun
|
||||
partition p6 values less than(60000),
|
||||
partition p7 values less than(70000)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into normal_test.tbl_partition select generate_series(1,65000);
|
||||
select count(*) from normal_test.tbl_partition;
|
||||
count
|
||||
@ -94,6 +101,7 @@ select relname, reloptions from pg_partition where parentid in (Select relfileno
|
||||
(9 rows)
|
||||
|
||||
create table normal_test.exchange_table(id int) WITH(compresstype=2,compress_chunk_size=1024);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ALTER TABLE normal_test.tbl_partition EXCHANGE PARTITION FOR(2500) WITH TABLE normal_test.exchange_table;
|
||||
NOTICE: Command without UPDATE GLOBAL INDEX will disable global index
|
||||
select count(*) from normal_test.tbl_partition;
|
||||
@ -121,6 +129,7 @@ select relname, reloptions from pg_partition where parentid in (Select relfileno
|
||||
(10 rows)
|
||||
|
||||
create index on normal_test.tbl_partition(id) local WITH (compresstype=2,compress_chunk_size=1024);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ normal_test.tbl_partition
|
||||
Table "normal_test.tbl_partition"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -149,21 +158,29 @@ select relname, reloptions from pg_partition where parentid in (Select relfileno
|
||||
|
||||
-- unsupport
|
||||
alter index normal_test.tbl_partition_id_idx set (compresstype=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compresstype OPTION is not supported
|
||||
alter index normal_test.tbl_partition_id_idx set (compress_chunk_size=2048);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compress_chunk_size OPTION is not supported
|
||||
alter index normal_test.tbl_partition_id_idx set (compress_prealloc_chunks=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change partition compress_prealloc_chunks OPTION is not supported
|
||||
create index rolcompress_index on normal_test.tbl_pc(id) with (compress_chunk_size=4096);
|
||||
ERROR: compress_chunk_size/compress_prealloc_chunks/compress_level/compress_byte_convert/compress_diff_convert should be used with compresstype.
|
||||
create table rolcompress_table_001(a int) with (compresstype=2, compress_prealloc_chunks=3);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: invalid compress_prealloc_chunks 3, must be less than 2 for rolcompress_table_001
|
||||
-- support
|
||||
alter table normal_test.tbl_pc set (compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
-- create table like test
|
||||
create table normal_test.including_all(id int) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table normal_test.including_all_new(like normal_test.including_all including all); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table normal_test.including_all_new2(like normal_test.including_all including reloptions); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ normal_test.including_all_new
|
||||
Table "normal_test.including_all_new"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -181,31 +198,44 @@ Has OIDs: no
|
||||
Options: orientation=row, compresstype=2
|
||||
|
||||
create table normal_test.segment_off(id int) with (compresstype=2,segment=off); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
--compress_diff_convert布尔值:
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert=t);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert='t');
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert='f');
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert=yes);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert='no');
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert='1');
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
--compress_byte_convert布尔值:
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=t,compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert='t',compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=f,compress_diff_convert=false);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=yes,compress_diff_convert=TRUE);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert=NO,compress_diff_convert=OFF);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
create table normal_test.tb1 (c_int int, c_bool boolean) with (Compresstype=2,Compress_chunk_size=512,compress_byte_convert='1',compress_diff_convert=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists normal_test.tb1;
|
||||
--segment参数:
|
||||
create table normal_test.t_bool_value (c_int int, c_bool boolean) with (segment = on);
|
||||
|
||||
@ -2,8 +2,11 @@
|
||||
create schema table_size_schema;
|
||||
CREATE TABLE table_size_schema.normal_table(id int);
|
||||
CREATE TABLE table_size_schema.compressed_table_1024(id int) WITH(compresstype=2, compress_chunk_size=1024);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CREATE TABLE table_size_schema.compressed_table_2048(id int) WITH(compresstype=2, compress_chunk_size=2048);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CREATE TABLE table_size_schema.compressed_table_4096(id int) WITH(compresstype=2, compress_chunk_size=4096);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select pg_table_size('table_size_schema.normal_table');
|
||||
pg_table_size
|
||||
---------------
|
||||
@ -41,12 +44,15 @@ partition by range(inv_date_sk)(partition p0 values less than(5000),partition p1
|
||||
create table partition_table_size_schema.compressed_partition_1024(INV_DATE_SK integer)
|
||||
WITH(compresstype=2, compress_chunk_size=1024)
|
||||
partition by range(inv_date_sk)(partition p0 values less than(5000),partition p1 values less than(10000));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table partition_table_size_schema.compressed_partition_2048(INV_DATE_SK integer)
|
||||
WITH(compresstype=2, compress_chunk_size=2048)
|
||||
partition by range(inv_date_sk)(partition p0 values less than(5000),partition p1 values less than(10000));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table partition_table_size_schema.compressed_partition_4096(INV_DATE_SK integer)
|
||||
WITH(compresstype=2, compress_chunk_size=4096)
|
||||
partition by range(inv_date_sk)(partition p0 values less than(5000),partition p1 values less than(10000));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
select pg_table_size('partition_table_size_schema.normal_partition');
|
||||
pg_table_size
|
||||
---------------
|
||||
|
||||
@ -8,88 +8,110 @@ create schema compress_normal_user;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 2
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=2, compress_chunk_size=512, compress_byte_convert=true, compress_diff_convert=true, compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 3
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=2, compress_chunk_size=512);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 4
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=2, compress_chunk_size=2048, compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 5
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=1, compress_chunk_size=2048, compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 6
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=2, compress_chunk_size=2048, compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 7
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(compresstype=1, compress_chunk_size=512, compress_prealloc_chunks=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','aaaaaaaabbbbbbbbbbbcccccccc', 2, 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc', 'aaaaaaaabbbbbbbbbbbcccccccc');
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 8
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) WITH(compresstype=2, compress_chunk_size=512, compress_prealloc_chunks=5);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','trgtrh', 12365);
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 9
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) WITH(compresstype=1, compress_chunk_size=512, compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','trgtrh', 12365);
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 10
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (compresstype=2, compress_chunk_size = 512, compress_level = 1, compress_prealloc_chunks=1,compress_diff_convert = true, compress_byte_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','trgtrh', 12365);
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 11
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = ustore, compresstype=2, compress_chunk_size = 512, compress_level = 1, compress_prealloc_chunks=1,compress_diff_convert = true, compress_byte_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','trgtrh', 12365);
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTWO) WITH(storage_type = ustore,compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
--testcase 12
|
||||
@ -97,6 +119,7 @@ drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)) WITH(storage_type = ustore, compresstype=2, compress_chunk_size = 512, compress_level = 1, compress_prealloc_chunks=1,compress_diff_convert = true, compress_byte_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
drop table if exists compress_normal_user.row_noncompression_test_tbl1 cascade;
|
||||
NOTICE: table "row_noncompression_test_tbl1" does not exist, skipping
|
||||
create table compress_normal_user.row_noncompression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50));
|
||||
@ -121,6 +144,7 @@ select count(*) from compress_normal_user.row_compression_test_tbl1; -- seq scan
|
||||
(1 row)
|
||||
|
||||
create index compress_normal_user.row_compression_test_tbl1_idx on compress_normal_user.row_compression_test_tbl1(COLUMNONE, COLUMNTHREE) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
select * from compress_normal_user.row_compression_test_tbl1 order by COLUMNONE limit 3; -- index scan
|
||||
columnone | columntwo | columnthree | columnfour | columnfive | columnsix | columnseven | columneight | columnnine | columnten | columneleven | columntwelve | columnthirteen | columnfourteen | columnfifteem
|
||||
@ -202,16 +226,22 @@ drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
drop table if exists compress_normal_user.row_compression_test_tbl1 cascade;
|
||||
NOTICE: table "row_compression_test_tbl1" does not exist, skipping
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = astore, compresstype=3, compress_chunk_size = 512, compress_level = 1, compress_prealloc_chunks=1,compress_diff_convert = true, compress_byte_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --error
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = astore, compresstype=3, compress_chunk_size = 512, compress_prealloc_chunks=1,compress_diff_convert = true, compress_byte_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --error
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = astore, compresstype=3, compress_chunk_size = 512, compress_prealloc_chunks=1,compress_byte_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --error
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = astore, compresstype=3, compress_chunk_size = 512, compress_prealloc_chunks=1,compress_diff_convert=true) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --error
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = ustore, compresstype=3, compress_chunk_size = 512, compress_prealloc_chunks=1) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --error
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
CREATE TABLE compress_normal_user.row_compression_test_tbl1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER) with (storage_type = astore, compresstype=3, compress_chunk_size = 512, compress_prealloc_chunks=1) PARTITION BY RANGE(COLUMNONE)(PARTITION P1 VALUES LESS THAN(1000),PARTITION P2 VALUES LESS THAN(2000),PARTITION P3 VALUES LESS THAN(3000),PARTITION P4 VALUES LESS THAN(4000),PARTITION P5 VALUES LESS THAN(5000),PARTITION P6 VALUES LESS THAN(MAXVALUE)); --ok
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: row-compression feature current not support algorithm is PGZSTD.
|
||||
insert into compress_normal_user.row_compression_test_tbl1 values(generate_series(0, 1600),'ZAINSERT1','trgtrh', 12365);
|
||||
ERROR: relation "compress_normal_user.row_compression_test_tbl1" does not exist on datanode1
|
||||
@ -275,8 +305,10 @@ drop table if exists row_noncompression_test_tbl1_kkk cascade;
|
||||
drop table if exists row_compression_test_tbl1_kkk cascade;
|
||||
NOTICE: table "row_compression_test_tbl1_kkk" does not exist, skipping
|
||||
create table row_compression_test_tbl1_kkk(COLUMNONE INTEGER ,COLUMNTWO CHAR(50)) WITH(compresstype=2, compress_chunk_size=512, compress_prealloc_chunks=1, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into row_compression_test_tbl1_kkk values(generate_series(0, 500),'ZAINSERT1');
|
||||
create index row_compression_test_tbl1_kkk_idx on row_compression_test_tbl1_kkk(COLUMNONE, COLUMNTWO) WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
checkpoint;
|
||||
select compress_func_findpath('row_compression_test_tbl1_kkk'); -- need ignore
|
||||
compress_func_findpath
|
||||
@ -421,6 +453,7 @@ checkpoint;
|
||||
drop table if exists t_compression_test_1 cascade;
|
||||
NOTICE: table "t_compression_test_1" does not exist, skipping
|
||||
create table t_compression_test_1(COLUMNONE INTEGER ,COLUMNTWO CHAR(50)) WITH(compresstype=2, compress_chunk_size=512, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into t_compression_test_1 values(generate_series(0, 500),'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
checkpoint;
|
||||
select * from t_compression_test_1 order by COLUMNONE limit 10;
|
||||
@ -470,6 +503,7 @@ NOTICE: table "nocompress_0039" does not exist, skipping
|
||||
create table compress_normal_user.nocompress_0039(
|
||||
COLUMNONE INTEGER ,COLUMNTWO CHAR(50) ,COLUMNTHREE VARCHAR(50) ,COLUMNFOUR INTEGER ,COLUMNFIVE CHAR(50) ,COLUMNSIX VARCHAR(50) ,COLUMNSEVEN CHAR(50) ,COLUMNEIGHT CHAR(50) ,COLUMNNINE VARCHAR(50) ,COLUMNTEN VARCHAR(50) ,COLUMNELEVEN CHAR(50) ,COLUMNTWELVE CHAR(50) ,COLUMNTHIRTEEN VARCHAR(50) ,COLUMNFOURTEEN CHAR(50) ,COLUMNFIFTEEM VARCHAR(50)
|
||||
)WITH(compresstype=2, compress_chunk_size=1024, compress_byte_convert=true, compress_diff_convert=true);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.nocompress_0039 values(generate_series(0,160000 * 1), 'ZAINSERT1','abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 2, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx');
|
||||
checkpoint;
|
||||
select count(*) from compress_normal_user.nocompress_0039;
|
||||
@ -500,6 +534,7 @@ partition p1 values (1),
|
||||
partition p2 values (2),
|
||||
partition p3 values (3)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table compress_normal_user.t_part_csf11 add partition p6 values(4);
|
||||
alter table compress_normal_user.t_part_csf11 add partition p7 values(5);
|
||||
insert into compress_normal_user.t_part_csf11 values(1, 'dscdscds'),(2, 'dscdscds'),(3, 'dscdscds'),(4, 'dscdscds'),(5, 'dscdscds');
|
||||
@ -526,6 +561,7 @@ partition p1 VALUES LESS THAN (1) ,
|
||||
partition p2 VALUES LESS THAN (2),
|
||||
partition p3 VALUES LESS THAN (3)
|
||||
) ;
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table compress_normal_user.t_part_csf22 add partition p6 VALUES LESS THAN(4) ;
|
||||
alter table compress_normal_user.t_part_csf22 add partition p7 VALUES LESS THAN(5);
|
||||
insert into compress_normal_user.t_part_csf22 values(1, 'dscdscds'),(2, 'dscdscds'),(3, 'dscdscds');
|
||||
@ -550,6 +586,7 @@ partition p1,
|
||||
partition p2,
|
||||
partition p3
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.t_part_csf44 values(1, 'dscdscds'),(2, 'dscdscds'),(3, 'dscdscds');
|
||||
checkpoint;
|
||||
select * from compress_normal_user.t_part_csf44 order by id asc;
|
||||
@ -584,6 +621,7 @@ PARTITION BY LIST (month_code) SUBPARTITION BY LIST (dept_code)
|
||||
SUBPARTITION p_201902_b VALUES ( '2' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.list_list values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.list_list order by month_code, dept_code;
|
||||
@ -621,6 +659,7 @@ PARTITION BY LIST (month_code) SUBPARTITION BY HASH (dept_code)
|
||||
SUBPARTITION p_201902_b
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.list_hash values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '3', '1', 1),('201903', '4', '1', 1),('201903', '5', '1', 1),('201903', '6', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.list_hash order by month_code, dept_code;
|
||||
@ -658,6 +697,7 @@ PARTITION BY LIST (month_code) SUBPARTITION BY RANGE (dept_code)
|
||||
SUBPARTITION p_201902_b values less than ('6')
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.list_range values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '3', '1', 1),('201903', '4', '1', 1),('201903', '5', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.list_range order by month_code, dept_code;
|
||||
@ -694,6 +734,7 @@ PARTITION BY RANGE (month_code) SUBPARTITION BY LIST (dept_code)
|
||||
SUBPARTITION p_201902_b values ('2')
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.range_list values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.range_list order by month_code, dept_code;
|
||||
@ -731,6 +772,7 @@ PARTITION BY RANGE (month_code) SUBPARTITION BY HASH (dept_code)
|
||||
SUBPARTITION p_201902_b
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.range_hash values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.range_hash order by month_code, dept_code;
|
||||
@ -768,6 +810,7 @@ PARTITION BY RANGE (month_code) SUBPARTITION BY RANGE (dept_code)
|
||||
SUBPARTITION p_201902_b VALUES LESS THAN( '3' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.range_range values('201902', '1', '1', 1),('201902', '2', '1', 1),('201902', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.range_range order by month_code, dept_code;
|
||||
@ -805,6 +848,7 @@ PARTITION BY hash (month_code) SUBPARTITION BY LIST (dept_code)
|
||||
SUBPARTITION p_201902_b VALUES ( '2' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.hash_list values('201901', '1', '1', 1),('201901', '2', '1', 1),('201901', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.hash_list order by month_code, dept_code;
|
||||
@ -842,6 +886,7 @@ PARTITION BY hash (month_code) SUBPARTITION BY hash (dept_code)
|
||||
SUBPARTITION p_201902_b
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.hash_hash values('201901', '1', '1', 1),('201901', '2', '1', 1),('201901', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.hash_hash order by month_code, dept_code;
|
||||
@ -879,6 +924,7 @@ PARTITION BY hash (month_code) SUBPARTITION BY range (dept_code)
|
||||
SUBPARTITION p_201902_b VALUES LESS THAN ( '3' )
|
||||
)
|
||||
);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
insert into compress_normal_user.hash_range values('201901', '1', '1', 1),('201901', '2', '1', 1),('201901', '1', '1', 1),('201903', '2', '1', 1),('201903', '1', '1', 1),('201903', '2', '1', 1);
|
||||
checkpoint;
|
||||
select * from compress_normal_user.hash_range order by month_code, dept_code;
|
||||
|
||||
@ -1,21 +1,26 @@
|
||||
create schema unsupported_feature;
|
||||
-- unspport compressType: 4
|
||||
CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compresstype=4, compress_chunk_size=1024);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: value 4 out of bounds for option "compresstype"
|
||||
DETAIL: Valid values are between "0" and "2".
|
||||
-- unspport compress_chunk_size: 2000
|
||||
CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compresstype=2, compress_chunk_size=2000);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: invalid compress_chunk_size 2000, must be one of 512, 1024, 2048 or 4096 for compressed_table_1024
|
||||
-- unspport compress_prealloc_chunks: -1
|
||||
CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compresstype=2, compress_prealloc_chunks=-1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: value -1 out of bounds for option "compress_prealloc_chunks"
|
||||
DETAIL: Valid values are between "0" and "7".
|
||||
-- unspport compress_prealloc_chunks: 8
|
||||
CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compresstype=2, compress_prealloc_chunks=8);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: value 8 out of bounds for option "compress_prealloc_chunks"
|
||||
DETAIL: Valid values are between "0" and "7".
|
||||
-- unspport compress_level: 128
|
||||
CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compresstype=2, compress_level=128);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: value 128 out of bounds for option "compress_level"
|
||||
DETAIL: Valid values are between "-31" and "31".
|
||||
-- compresstype cant be used with column table
|
||||
@ -40,6 +45,7 @@ CREATE TABLE unsupported_feature.compressed_table_1024(id int) WITH(compress_lev
|
||||
ERROR: compress_chunk_size/compress_prealloc_chunks/compress_level/compress_byte_convert/compress_diff_convert should be used with compresstype.
|
||||
-- unspport exchange
|
||||
CREATE TABLE unsupported_feature.exchange_table(id int) WITH(compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CREATE TABLE unsupported_feature.alter_table(id int) partition by range(id)
|
||||
(
|
||||
partition p0 values less than(5000),
|
||||
@ -55,6 +61,7 @@ ALTER TABLE unsupported_feature.alter_table EXCHANGE PARTITION FOR(2500) WITH TA
|
||||
ERROR: tables in ALTER TABLE EXCHANGE PARTITION must have the same type of compress
|
||||
-- unspport alter compress_chunk_size
|
||||
create TABLE unsupported_feature.alter_table_option(id int) WITH(compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
\d+ unsupported_feature.alter_table_option
|
||||
Table "unsupported_feature.alter_table_option"
|
||||
Column | Type | Modifiers | Storage | Stats target | Description
|
||||
@ -64,33 +71,48 @@ Has OIDs: no
|
||||
Options: orientation=row, compresstype=2
|
||||
|
||||
ALTER TABLE unsupported_feature.alter_table_option SET(compresstype=0); -- success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ALTER TABLE unsupported_feature.alter_table_option SET(compress_chunk_size=2048); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level=0, compress_chunk_size=4096, compress_prealloc_chunks=0, compress_byte_convert=false, compress_diff_convert=false should be set when compresstype=0
|
||||
ALTER TABLE unsupported_feature.alter_table_option SET(compresstype=2, compress_level=2, compress_prealloc_chunks=0); -- success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
-- alter compress_byte_convert\compress_diff_convert
|
||||
create table unsupported_feature.rolcompress_table_001(a int) with (compresstype=2, compress_diff_convert=true); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_diff_convert should be used with compress_byte_convert.
|
||||
create table unsupported_feature.t_rowcompress_0007(cid int, name varchar2) with (compresstype=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table unsupported_feature.t_rowcompress_0007 set (compress_diff_convert=true); --fail
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_diff_convert should be used with compress_byte_convert.
|
||||
alter table unsupported_feature.t_rowcompress_0007 set (compress_byte_convert=true, compress_diff_convert=true); --success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table unsupported_feature.t_rowcompress_0007 set (compress_level=31); --failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level should be used with ZSTD algorithm.
|
||||
create table unsupported_feature.t_rowcompress_pglz_compresslevel(id int) with (compresstype=1,compress_level=2); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level should be used with ZSTD algorithm.
|
||||
create table unsupported_feature.t_rowcompress_pglz_compresslevel(id int) with (compresstype=2,compress_level=2); -- success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
CREATE TABLE unsupported_feature.index_test(id int, c1 text);
|
||||
-- segment
|
||||
CREATE TABLE unsupported_feature.segment_table(id int, c1 text) WITH(compresstype=2, segment=on); --failed
|
||||
ERROR: compresstype can not be used in segment table, column table, view, unlogged table or temp table.
|
||||
CREATE INDEX on unsupported_feature.index_test(c1) WITH(compresstype=2, segment=on); --failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: Can not use compress option in segment storage.
|
||||
-- set compress_diff_convert
|
||||
create table unsupported_feature.compress_byte_test(id int) with (compresstype=2, compress_byte_convert=false, compress_diff_convert = true); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_diff_convert should be used with compress_byte_convert.
|
||||
create table unsupported_feature.test(id int) with (compresstype=2); -- success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table unsupported_feature.test set(Compresstype=1); -- success
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
alter table unsupported_feature.test set(Compress_level=3); -- failed
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: compress_level should be used with ZSTD algorithm.
|
||||
create table lm_rcp_4 (c1 int,c2 varchar2,c3 number,c4 money,c5 CHAR(20),c6 CLOB,c7 blob,c8 DATE,c9 BOOLEAN,c10 TIMESTAMP,c11 point,columns12 cidr) with(Compresstype=2,Compress_chunk_size=512)
|
||||
partition by list(c1) subpartition by range(c3)(
|
||||
@ -98,12 +120,16 @@ create table lm_rcp_4 (c1 int,c2 varchar2,c3 number,c4 money,c5 CHAR(20),c6 CLOB
|
||||
partition ts2 values(6,7,8,9,10),
|
||||
partition ts3 values(11,12,13,14,15)(subpartition ts31 values less than(5000),subpartition ts32 values less than(10000),subpartition ts33 values less than(MAXVALUE)),
|
||||
partition ts4 values(default));
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create unique index indexg_lm_rcp_4 on lm_rcp_4(c1 NULLS first,c2,c3) global
|
||||
with(FILLFACTOR=80,Compresstype=2,Compress_chunk_size=512,compress_byte_convert=1,compress_diff_convert=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
--s3.
|
||||
alter index indexg_lm_rcp_4 rename to indexg_lm_rcp_4_newname;
|
||||
--s4.修改压缩类型
|
||||
alter index indexg_lm_rcp_4_newname set(Compresstype=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
ERROR: change compresstype OPTION is not supported
|
||||
--s5.修改Compress_level
|
||||
alter index indexg_lm_rcp_4_newname set(Compress_level=3);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
--?.*
|
||||
CREATE DATABASE
|
||||
--?.*
|
||||
--?.*
|
||||
CREATE TABLE
|
||||
--?.*
|
||||
CREATE INDEX
|
||||
INSERT 0 1000
|
||||
CHECKPOINT
|
||||
|
||||
@ -1,12 +1,18 @@
|
||||
begin;
|
||||
create table test_abort1(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table test_abort2(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table test_abort3(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
prepare transaction 'the first prepare transaction';
|
||||
rollback prepared 'the first prepare transaction';
|
||||
create table test_commit1(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table test_commit2(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table test_commit3(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
begin;
|
||||
drop table test_commit1;
|
||||
drop table test_commit2;
|
||||
@ -23,16 +29,24 @@ INSERT 0 1
|
||||
start transaction;
|
||||
create table "compress_2PC".normal(a text,b integer);
|
||||
create table "compress_2PC".compress1(a text,b integer) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress2(a text,b integer) with (compresstype=2,compress_chunk_size=2048,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress3(a text,b integer) with (compresstype=2,compress_chunk_size=1024,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress4(a text,b integer) with (compresstype=2,compress_chunk_size=512,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
rollback;
|
||||
-- drop commit
|
||||
create table "compress_2PC".normal(id int);
|
||||
create table "compress_2PC".compress1(id int) with (compresstype=2);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress2(id int) with (compresstype=2,compress_chunk_size=2048,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress3(id int) with (compresstype=2,compress_chunk_size=1024,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".compress4(id int) with (compresstype=2,compress_chunk_size=512,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
start transaction;
|
||||
drop table "compress_2PC".normal;
|
||||
drop table "compress_2PC".compress1;
|
||||
@ -43,13 +57,18 @@ commit;
|
||||
-- 2pc create rollback
|
||||
begin;
|
||||
create table "compress_2PC".test_abort2(b integer) with (compresstype=2,compress_chunk_size=2048,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
prepare transaction 'the first prepare transaction';
|
||||
rollback prepared 'the first prepare transaction';
|
||||
--2pc drop rollback
|
||||
create table "compress_2PC".test_commit1(a text,b integer) with (compresstype=2,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".test_commit2(a text,b integer) with (compresstype=2,compress_chunk_size=2048,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".test_commit3(a text,b integer) with (compresstype=2,compress_chunk_size=1024,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".test_commit4(a text,b integer) with (compresstype=2,compress_chunk_size=512,compress_prealloc_chunks=1);
|
||||
WARNING: The compressed relation you are using is an unofficial supported extended feature.
|
||||
create table "compress_2PC".test_commit5(a text,b integer);
|
||||
begin;
|
||||
drop table "compress_2PC".test_commit1;
|
||||
|
||||
Reference in New Issue
Block a user