mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-23 22:41:34 +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
16 lines
505 B
Plaintext
16 lines
505 B
Plaintext
-- 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.
|
|
\c :TEST_DBNAME :ROLE_SUPERUSER
|
|
SELECT _timescaledb_debug.extension_state();
|
|
extension_state
|
|
-----------------
|
|
created
|
|
(1 row)
|
|
|
|
SET ROLE :ROLE_DEFAULT_PERM_USER;
|
|
\set ON_ERROR_STOP 0
|
|
SELECT _timescaledb_debug.extension_state();
|
|
ERROR: permission denied for schema _timescaledb_debug at character 8
|
|
\set ON_ERROR_STOP 1
|