mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 10:11:29 +08:00
Duplicate the existing index tests to use hash index and make sure that it works correctly. We rename the existing file to be able to have tests for all the different kinds of indexes. We also rename the existing `explain_anonymize` to `explain_analyze_anonymize` and introduce a non-analyze version with the original name. It also modifies the permissions of `_timescaledb_debug` schema and `_timescaledb_debug.is_compressed_tid` function to make sure we can use it correctly.
17 lines
705 B
SQL
17 lines
705 B
SQL
-- This file and its contents are licensed under the Apache License 2.0.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-APACHE for a copy of the license.
|
|
|
|
-- This file contains utility functions and views that are used for
|
|
-- debugging in release builds. These are all placed in the schema
|
|
-- _timescaledb_debug.
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_debug.extension_state() RETURNS TEXT
|
|
AS '@MODULE_PATHNAME@', 'ts_extension_get_state' LANGUAGE C;
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_debug.is_compressed_tid(tid) RETURNS BOOL
|
|
AS '@MODULE_PATHNAME@', 'ts_is_compressed_tid' LANGUAGE C STRICT;
|
|
|
|
GRANT EXECUTE ON FUNCTION _timescaledb_debug.is_compressed_tid TO PUBLIC;
|
|
|