mirror of https://github.com/citusdata/citus.git
30 lines
1.0 KiB
SQL
30 lines
1.0 KiB
SQL
-- citus_schema_move, using target node name and node port
|
|
CREATE OR REPLACE FUNCTION pg_catalog.citus_schema_move(
|
|
schema_id regnamespace,
|
|
target_node_name text,
|
|
target_node_port integer,
|
|
shard_transfer_mode citus.shard_transfer_mode default 'auto')
|
|
RETURNS void
|
|
LANGUAGE C STRICT
|
|
AS 'MODULE_PATHNAME', $$citus_schema_move$$;
|
|
COMMENT ON FUNCTION pg_catalog.citus_schema_move(
|
|
schema_id regnamespace,
|
|
target_node_name text,
|
|
target_node_port integer,
|
|
shard_transfer_mode citus.shard_transfer_mode)
|
|
IS 'move a distributed schema to given node';
|
|
|
|
-- citus_schema_move, using target node id
|
|
CREATE OR REPLACE FUNCTION pg_catalog.citus_schema_move(
|
|
schema_id regnamespace,
|
|
target_node_id integer,
|
|
shard_transfer_mode citus.shard_transfer_mode default 'auto')
|
|
RETURNS void
|
|
LANGUAGE C STRICT
|
|
AS 'MODULE_PATHNAME', $$citus_schema_move_with_nodeid$$;
|
|
COMMENT ON FUNCTION pg_catalog.citus_schema_move(
|
|
schema_id regnamespace,
|
|
target_node_id integer,
|
|
shard_transfer_mode citus.shard_transfer_mode)
|
|
IS 'move a distributed schema to given node';
|