niksa c77f4ab1b3 Explicit chunk exclusion
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])`
2019-01-19 00:02:01 +01:00

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)