-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move chunk functions to _timescaledb_functions schema
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: - calculate_chunk_interval(int, bigint, bigint) - chunk_status(regclass) - chunks_in(record, integer[]) - chunk_id_from_relid(oid) - show_chunk(regclass) - create_chunk(regclass, jsonb, name, name, regclass) - set_chunk_default_data_node(regclass, name) - get_chunk_relstats(regclass) - get_chunk_colstats(regclass) - create_chunk_table(regclass, jsonb, name, name) - freeze_chunk(regclass) - unfreeze_chunk(regclass) - drop_chunk(regclass) - attach_osm_table_chunk(regclass, regclass)
- Loading branch information
Showing
73 changed files
with
4,392 additions
and
4,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ CREATE OR REPLACE FUNCTION @[email protected]_hypertable( | |
partitioning_func REGPROC = NULL, | ||
migrate_data BOOLEAN = FALSE, | ||
chunk_target_size TEXT = NULL, | ||
chunk_sizing_func REGPROC = '_timescaledb_internal.calculate_chunk_interval'::regproc, | ||
chunk_sizing_func REGPROC = '_timescaledb_functions.calculate_chunk_interval'::regproc, | ||
time_partitioning_func REGPROC = NULL, | ||
replication_factor INTEGER = NULL, | ||
data_nodes NAME[] = NULL, | ||
|
@@ -56,7 +56,7 @@ CREATE OR REPLACE FUNCTION @[email protected]_distributed_hypertable( | |
partitioning_func REGPROC = NULL, | ||
migrate_data BOOLEAN = FALSE, | ||
chunk_target_size TEXT = NULL, | ||
chunk_sizing_func REGPROC = '_timescaledb_internal.calculate_chunk_interval'::regproc, | ||
chunk_sizing_func REGPROC = '_timescaledb_functions.calculate_chunk_interval'::regproc, | ||
time_partitioning_func REGPROC = NULL, | ||
replication_factor INTEGER = NULL, | ||
data_nodes NAME[] = NULL | ||
|
@@ -66,7 +66,7 @@ CREATE OR REPLACE FUNCTION @[email protected]_distributed_hypertable( | |
CREATE OR REPLACE FUNCTION @[email protected]_adaptive_chunking( | ||
hypertable REGCLASS, | ||
chunk_target_size TEXT, | ||
INOUT chunk_sizing_func REGPROC = '_timescaledb_internal.calculate_chunk_interval'::regproc, | ||
INOUT chunk_sizing_func REGPROC = '_timescaledb_functions.calculate_chunk_interval'::regproc, | ||
OUT chunk_target_size BIGINT | ||
) RETURNS RECORD AS '@MODULE_PATHNAME@', 'ts_chunk_adaptive_set' LANGUAGE C VOLATILE; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.