mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 01:53:41 +08:00
The extension state is not easily accessible in release builds, which makes debugging issue with the loader very difficult. This commit introduces a new schema `_timescaledb_debug` and makes the function `ts_extension_get_state` available also in release builds as `_timescaledb_debug.extension_state`. See #1682
11 lines
480 B
SQL
11 lines
480 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;
|