mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
To increase schema security we do not want to mix our own internal objects with user objects. Since chunks are created in the _timescaledb_internal schema our internal functions should live in a different dedicated schema. This patch make the necessary adjustments for the following functions: - restart_background_workers() - stop_background_workers() - start_background_workers() - alter_job_set_hypertable_id(integer,regclass)
19 lines
670 B
SQL
19 lines
670 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.
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_functions.restart_background_workers()
|
|
RETURNS BOOL
|
|
AS '@LOADER_PATHNAME@', 'ts_bgw_db_workers_restart'
|
|
LANGUAGE C VOLATILE;
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_functions.stop_background_workers()
|
|
RETURNS BOOL
|
|
AS '@LOADER_PATHNAME@', 'ts_bgw_db_workers_stop'
|
|
LANGUAGE C VOLATILE;
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_functions.start_background_workers()
|
|
RETURNS BOOL
|
|
AS '@LOADER_PATHNAME@', 'ts_bgw_db_workers_start'
|
|
LANGUAGE C VOLATILE;
|