mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 19:13:16 +08:00
Do not allow paths that are parameterized on a compressed column to exist when creating paths for a compressed chunk.
21 lines
784 B
MySQL
21 lines
784 B
MySQL
-- This file and its contents are licensed under the Timescale License.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-TIMESCALE for a copy of the license.
|
|
|
|
-- disable memoize on PG14+
|
|
SELECT CASE WHEN current_setting('server_version_num')::int/10000 >= 14 THEN set_config('enable_memoize','off',false) ELSE 'off' END AS enable_memoize;
|
|
SET enable_indexscan TO false;
|
|
|
|
-- test join on compressed time column
|
|
-- #3079, #4465
|
|
CREATE TABLE compressed_join_temp AS SELECT * FROM metrics ORDER BY time DESC LIMIT 10;
|
|
ANALYZE compressed_join_temp;
|
|
|
|
EXPLAIN (analyze,costs off,timing off,summary off) SELECT *
|
|
FROM compressed_join_temp t
|
|
INNER JOIN metrics_compressed m ON t.time = m.time AND t.device_id = m.device_id
|
|
LIMIT 1;
|
|
|
|
DROP TABLE compressed_join_temp;
|
|
|