mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-14 09:37:00 +08:00
This patch removes the following objects: tables: - _timescaledb_catalog.chunk_data_node - _timescaledb_catalog.dimension_partition - _timescaledb_catalog.hypertable_data_node - _timescaledb_catalog.remote_txn views: - timescaledb_information.data_nodes functions: - _timescaledb_functions.hypertable_remote_size - _timescaledb_functions.chunks_remote_size - _timescaledb_functions.indexes_remote_size - _timescaledb_functions.compressed_chunk_remote_stats
19 lines
741 B
SQL
19 lines
741 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 VIEW timescaledb_experimental.policies AS
|
|
SELECT ca.user_view_name AS relation_name,
|
|
ca.user_view_schema AS relation_schema,
|
|
j.schedule_interval,
|
|
j.proc_schema,
|
|
j.proc_name,
|
|
j.config,
|
|
ht.schema_name AS hypertable_schema,
|
|
ht.table_name AS hypertable_name
|
|
FROM _timescaledb_config.bgw_job j
|
|
JOIN _timescaledb_catalog.continuous_agg ca ON ca.mat_hypertable_id = j.hypertable_id
|
|
JOIN _timescaledb_catalog.hypertable ht ON ht.id = ca.mat_hypertable_id;
|
|
|
|
GRANT SELECT ON ALL TABLES IN SCHEMA timescaledb_experimental TO PUBLIC;
|