You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tsl/test/expected/chunk_merge.out
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,9 +82,11 @@ SELECT compress_chunk(i) FROM show_chunks('test1') i;
82
82
_timescaledb_internal._hyper_1_2_chunk
83
83
_timescaledb_internal._hyper_1_5_chunk
84
84
85
+
SELECT compress_relid AS "COMPRESSED_CHUNK_1" FROM _timescaledb_catalog.compression_settings WHERE relid = '_timescaledb_internal._hyper_1_1_chunk'::regclass \gset
86
+
SELECT compress_relid AS "COMPRESSED_CHUNK_2" FROM _timescaledb_catalog.compression_settings WHERE relid = '_timescaledb_internal._hyper_1_2_chunk'::regclass \gset
85
87
\set ON_ERROR_STOP 0
86
88
-- Cannot merge chunks internal compressed chunks, no dimensions on them.
-- look up the compressed chunk relation for the chunk
32
+
SELECT compress_relid AS "COMPRESSED_CHUNK" FROM _timescaledb_catalog.compression_settings WHERE relid = '_timescaledb_internal._hyper_1_1_chunk'::regclass \gset
31
33
-- create custom compressed chunk table
32
-
CREATE TABLE _timescaledb_internal.custom_compressed_chunk( LIKE _timescaledb_internal.compress_hyper_2_2_chunk);
34
+
CREATE TABLE _timescaledb_internal.custom_compressed_chunk( LIKE :COMPRESSED_CHUNK);
33
35
-- copy compressed row from compressed table into custom compressed chunk table
34
-
INSERT INTO "_timescaledb_internal"."custom_compressed_chunk" SELECT * FROM "_timescaledb_internal"."compress_hyper_2_2_chunk";
36
+
INSERT INTO "_timescaledb_internal"."custom_compressed_chunk" SELECT * FROM :COMPRESSED_CHUNK;
35
37
-- decompress the rows, moving them back to uncompressed space
0 commit comments