mirror of https://github.com/citusdata/citus.git
20 lines
692 B
SQL
20 lines
692 B
SQL
/* citus--6.1-16--6.1-17.sql */
|
|
|
|
SET search_path = 'pg_catalog';
|
|
|
|
CREATE FUNCTION isolate_tenant_to_new_shard(table_name regclass, tenant_id "any", cascade_option text DEFAULT '')
|
|
RETURNS bigint
|
|
LANGUAGE C STRICT
|
|
AS 'MODULE_PATHNAME', $$isolate_tenant_to_new_shard$$;
|
|
COMMENT ON FUNCTION isolate_tenant_to_new_shard(table_name regclass, tenant_id "any", cascade_option text)
|
|
IS 'isolate a tenant to its own shard and return the new shard id';
|
|
|
|
CREATE FUNCTION worker_hash(value "any")
|
|
RETURNS integer
|
|
LANGUAGE C STRICT
|
|
AS 'MODULE_PATHNAME', $$worker_hash$$;
|
|
COMMENT ON FUNCTION worker_hash(value "any")
|
|
IS 'calculate hashed value and return it';
|
|
|
|
RESET search_path;
|