-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove experimental multinode functions
This commit removes the following functions: - timescaledb_experimental.block_new_chunks - timescaledb_experimental.allow_new_chunks - timescaledb_experimental.subscription_exec - timescaledb_experimental.move_chunk - timescaledb_experimental.copy_chunk - timescaledb_experimental.cleanup_copy_chunk_operation
- Loading branch information
Showing
18 changed files
with
56 additions
and
1,814 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
DROP VIEW IF EXISTS _timescaledb_internal.hypertable_chunk_local_size; | ||
DROP VIEW IF EXISTS _timescaledb_internal.compressed_chunk_stats; | ||
|
||
-- only do stub here to not introduce dependency in shared object in update chain | ||
CREATE FUNCTION @[email protected]_distributed_restore_point( | ||
name TEXT | ||
) RETURNS TABLE(node_name NAME, node_type TEXT, restore_point pg_lsn) | ||
AS '@MODULE_PATHNAME@', 'ts_create_distributed_restore_point' LANGUAGE C VOLATILE STRICT; | ||
AS $$SELECT NULL::name,NULL::text,NULL::pg_lsn;$$ LANGUAGE SQL VOLATILE STRICT; | ||
|
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 |
---|---|---|
|
@@ -85,12 +85,31 @@ DROP PROCEDURE IF EXISTS _timescaledb_functions.wait_subscription_sync; | |
DROP FUNCTION IF EXISTS _timescaledb_functions.health; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.drop_stale_chunks; | ||
|
||
DROP FUNCTION IF EXISTS _timescaledb_internal.create_chunk_replica_table; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.chunk_drop_replica; | ||
DROP PROCEDURE IF EXISTS _timescaledb_internal.wait_subscription_sync; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.health; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.drop_stale_chunks; | ||
|
||
ALTER TABLE _timescaledb_catalog.remote_txn DROP CONSTRAINT remote_txn_remote_transaction_id_check; | ||
|
||
DROP TYPE IF EXISTS @[email protected] CASCADE; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.rxid_in; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.rxid_out; | ||
|
||
DROP TYPE IF EXISTS @[email protected]; | ||
|
||
DROP FUNCTION IF EXISTS _timescaledb_functions.data_node_hypertable_info; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.data_node_chunk_info; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.data_node_compressed_chunk_stats; | ||
DROP FUNCTION IF EXISTS _timescaledb_functions.data_node_index_size; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.data_node_hypertable_info; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.data_node_chunk_info; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.data_node_compressed_chunk_stats; | ||
DROP FUNCTION IF EXISTS _timescaledb_internal.data_node_index_size; | ||
|
||
DROP FUNCTION IF EXISTS timescaledb_experimental.block_new_chunks; | ||
DROP FUNCTION IF EXISTS timescaledb_experimental.allow_new_chunks; | ||
DROP FUNCTION IF EXISTS timescaledb_experimental.subscription_exec; | ||
DROP PROCEDURE IF EXISTS timescaledb_experimental.move_chunk; | ||
DROP PROCEDURE IF EXISTS timescaledb_experimental.copy_chunk; | ||
DROP PROCEDURE IF EXISTS timescaledb_experimental.cleanup_copy_chunk_operation; | ||
|
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 |
---|---|---|
|
@@ -248,7 +248,6 @@ CREATE FUNCTION _timescaledb_functions.drop_stale_chunks( | |
) RETURNS VOID | ||
AS '@MODULE_PATHNAME@', 'ts_chunks_drop_stale' LANGUAGE C VOLATILE; | ||
|
||
|
||
CREATE FUNCTION _timescaledb_functions.rxid_in(cstring) RETURNS @[email protected] | ||
AS '@MODULE_PATHNAME@', 'ts_remote_txn_id_in' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; | ||
|
||
|
@@ -261,6 +260,8 @@ CREATE TYPE @[email protected] ( | |
output = _timescaledb_functions.rxid_out | ||
); | ||
|
||
ALTER TABLE _timescaledb_catalog.remote_txn ADD CONSTRAINT remote_txn_remote_transaction_id_check CHECK (remote_transaction_id::@[email protected] IS NOT NULL); | ||
|
||
CREATE FUNCTION _timescaledb_functions.data_node_hypertable_info( | ||
node_name NAME, | ||
schema_name_in name, | ||
|
@@ -308,3 +309,31 @@ CREATE FUNCTION _timescaledb_functions.data_node_index_size(node_name name, sche | |
RETURNS TABLE ( hypertable_id INTEGER, total_bytes BIGINT) | ||
AS '@MODULE_PATHNAME@' , 'ts_dist_remote_hypertable_index_info' LANGUAGE C VOLATILE STRICT; | ||
|
||
CREATE FUNCTION timescaledb_experimental.block_new_chunks(data_node_name NAME, hypertable REGCLASS = NULL, force BOOLEAN = FALSE) RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_data_node_block_new_chunks' LANGUAGE C VOLATILE; | ||
|
||
CREATE FUNCTION timescaledb_experimental.allow_new_chunks(data_node_name NAME, hypertable REGCLASS = NULL) RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_data_node_allow_new_chunks' LANGUAGE C VOLATILE; | ||
|
||
CREATE PROCEDURE timescaledb_experimental.move_chunk( | ||
chunk REGCLASS, | ||
source_node NAME = NULL, | ||
destination_node NAME = NULL, | ||
operation_id NAME = NULL) | ||
AS '@MODULE_PATHNAME@', 'ts_move_chunk_proc' LANGUAGE C; | ||
|
||
CREATE PROCEDURE timescaledb_experimental.copy_chunk( | ||
chunk REGCLASS, | ||
source_node NAME = NULL, | ||
destination_node NAME = NULL, | ||
operation_id NAME = NULL) | ||
AS '@MODULE_PATHNAME@', 'ts_copy_chunk_proc' LANGUAGE C; | ||
|
||
CREATE FUNCTION timescaledb_experimental.subscription_exec( | ||
subscription_command TEXT | ||
) RETURNS VOID AS '@MODULE_PATHNAME@', 'ts_subscription_exec' LANGUAGE C VOLATILE; | ||
|
||
CREATE PROCEDURE timescaledb_experimental.cleanup_copy_chunk_operation( | ||
operation_id NAME) | ||
AS '@MODULE_PATHNAME@', 'ts_copy_chunk_cleanup_proc' LANGUAGE C; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
set(SOURCES | ||
chunk_api.c | ||
chunk.c | ||
chunk_copy.c | ||
data_node.c | ||
deparse.c | ||
dist_util.c | ||
|
Oops, something went wrong.