mirror of https://github.com/citusdata/citus.git
Properly add the external function
parent
dfe2354378
commit
6b6d00ef38
|
@ -1,6 +1,22 @@
|
|||
CREATE OR REPLACE FUNCTION citus_remote_connection_stats(OUT hostname text, OUT port int, OUT database_name text, OUT connection_count_to_node int)
|
||||
RETURNS SETOF RECORD
|
||||
LANGUAGE C STRICT
|
||||
AS 'MODULE_PATHNAME', $$citus_remote_connection_stats$$;
|
||||
COMMENT ON FUNCTION citus_remote_connection_stats(OUT hostname text, OUT port int, OUT database_name text, OUT connection_count_to_node int)
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
RETURNS SETOF RECORD
|
||||
LANGUAGE C STRICT
|
||||
AS 'MODULE_PATHNAME', $$citus_remote_connection_stats$$;
|
||||
|
||||
COMMENT ON FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
IS 'returns statistics about remote connections';
|
||||
|
||||
REVOKE ALL ON FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
FROM PUBLIC;
|
||||
|
|
|
@ -1,6 +1,22 @@
|
|||
CREATE OR REPLACE FUNCTION citus_remote_connection_stats(OUT hostname text, OUT port int, OUT database_name text, OUT connection_count_to_node int)
|
||||
RETURNS SETOF RECORD
|
||||
LANGUAGE C STRICT
|
||||
AS 'MODULE_PATHNAME', $$citus_remote_connection_stats$$;
|
||||
COMMENT ON FUNCTION citus_remote_connection_stats(OUT hostname text, OUT port int, OUT database_name text, OUT connection_count_to_node int)
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
RETURNS SETOF RECORD
|
||||
LANGUAGE C STRICT
|
||||
AS 'MODULE_PATHNAME', $$citus_remote_connection_stats$$;
|
||||
|
||||
COMMENT ON FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
IS 'returns statistics about remote connections';
|
||||
|
||||
REVOKE ALL ON FUNCTION pg_catalog.citus_remote_connection_stats(
|
||||
OUT hostname text,
|
||||
OUT port int,
|
||||
OUT database_name text,
|
||||
OUT connection_count_to_node int)
|
||||
FROM PUBLIC;
|
||||
|
|
Loading…
Reference in New Issue