mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
Currently internal user objects like chunks and our functions live in the same schema making locking down that schema hard. This patch adds a new schema _timescaledb_functions that is meant to be the schema used for timescaledb internal functions to allow separation of code and chunks or other user objects.
17 lines
684 B
SQL
17 lines
684 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.
|
|
|
|
SET LOCAL search_path TO pg_catalog, pg_temp;
|
|
|
|
CREATE SCHEMA _timescaledb_catalog;
|
|
CREATE SCHEMA _timescaledb_functions;
|
|
CREATE SCHEMA _timescaledb_internal;
|
|
CREATE SCHEMA _timescaledb_cache;
|
|
CREATE SCHEMA _timescaledb_config;
|
|
CREATE SCHEMA timescaledb_experimental;
|
|
CREATE SCHEMA timescaledb_information;
|
|
|
|
GRANT USAGE ON SCHEMA _timescaledb_cache, _timescaledb_catalog, _timescaledb_functions, _timescaledb_internal, _timescaledb_config, timescaledb_information, timescaledb_experimental TO PUBLIC;
|
|
|