mirror of https://github.com/citusdata/citus.git
25 lines
881 B
SQL
25 lines
881 B
SQL
/* citus--6.1-17--6.1-18.sql */
|
|
|
|
SET search_path = 'pg_catalog';
|
|
|
|
ALTER TABLE pg_dist_node ADD COLUMN noderole "char" NOT NULL DEFAULT 'p';
|
|
|
|
DROP FUNCTION IF EXISTS master_add_node(text, integer);
|
|
|
|
CREATE FUNCTION master_add_node(nodename text,
|
|
nodeport integer,
|
|
OUT nodeid integer,
|
|
OUT groupid integer,
|
|
OUT nodename text,
|
|
OUT nodeport integer,
|
|
OUT noderack text,
|
|
OUT hasmetadata boolean,
|
|
OUT noderole "char")
|
|
RETURNS record
|
|
LANGUAGE C STRICT
|
|
AS 'MODULE_PATHNAME', $$master_add_node$$;
|
|
COMMENT ON FUNCTION master_add_node(nodename text, nodeport integer)
|
|
IS 'add node to the cluster';
|
|
|
|
RESET search_path;
|