mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-18 19:59:48 +08:00
In some cases user might already know what chunks need to be scanned to answer a particular query. Using `chunks_in` function we can skip calculating chunks involved in particular query which should result in better performances as well. A simple example: `SELECT * FROM hypertable WHERE chunks_in(hypertable, ARRAY[1,2])`
15 lines
560 B
Plaintext
15 lines
560 B
Plaintext
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
|
|
--
|
|
-- This file is licensed under the Apache License,
|
|
-- see LICENSE-APACHE at the top level directory.
|
|
\c :TEST_DBNAME :ROLE_SUPERUSER
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.utils_test_list_cell_detach() RETURNS BOOL
|
|
AS :MODULE_PATHNAME, 'ts_test_list_cell_detach' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
|
|
SELECT _timescaledb_internal.utils_test_list_cell_detach();
|
|
utils_test_list_cell_detach
|
|
-----------------------------
|
|
t
|
|
(1 row)
|
|
|