diff --git a/pg_stat_monitor--1.0.13.sql.in b/pg_stat_monitor--1.0.13.sql.in index 5de6083e9ce4..1ba41ddb399e 100644 --- a/pg_stat_monitor--1.0.13.sql.in +++ b/pg_stat_monitor--1.0.13.sql.in @@ -89,7 +89,7 @@ RETURNS SETOF record AS 'MODULE_PATHNAME', 'pg_stat_monitor' LANGUAGE C STRICT VOLATILE PARALLEL SAFE; -CREATE OR REPLACE FUNCTION get_state(state_code int8) RETURNS TEXT AS +CREATE FUNCTION get_state(state_code int8) RETURNS TEXT AS $$ SELECT CASE @@ -102,7 +102,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE or REPLACE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS +CREATE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS $$ SELECT CASE @@ -225,7 +225,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE OR REPLACE FUNCTION histogram(_bucket int, _quryid text) +CREATE FUNCTION histogram(_bucket int, _quryid text) RETURNS SETOF RECORD AS $$ DECLARE rec record; diff --git a/pg_stat_monitor--1.0.14.sql.in b/pg_stat_monitor--1.0.14.sql.in index 0bbb0cefaedd..d3268268dd13 100644 --- a/pg_stat_monitor--1.0.14.sql.in +++ b/pg_stat_monitor--1.0.14.sql.in @@ -89,7 +89,7 @@ RETURNS SETOF record AS 'MODULE_PATHNAME', 'pg_stat_monitor' LANGUAGE C STRICT VOLATILE PARALLEL SAFE; -CREATE OR REPLACE FUNCTION get_state(state_code int8) RETURNS TEXT AS +CREATE FUNCTION get_state(state_code int8) RETURNS TEXT AS $$ SELECT CASE @@ -102,7 +102,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE or REPLACE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS +CREATE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS $$ SELECT CASE @@ -226,7 +226,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE OR REPLACE FUNCTION histogram(_bucket int, _quryid text) +CREATE FUNCTION histogram(_bucket int, _quryid text) RETURNS SETOF RECORD AS $$ DECLARE rec record; diff --git a/pg_stat_monitor--1.0.sql.in b/pg_stat_monitor--1.0.sql.in index fda49f7cd26f..909100a6ddf1 100644 --- a/pg_stat_monitor--1.0.sql.in +++ b/pg_stat_monitor--1.0.sql.in @@ -86,7 +86,7 @@ RETURNS SETOF record AS 'MODULE_PATHNAME', 'pg_stat_monitor' LANGUAGE C STRICT VOLATILE PARALLEL SAFE; -CREATE OR REPLACE FUNCTION get_state(state_code int8) RETURNS TEXT AS +CREATE FUNCTION get_state(state_code int8) RETURNS TEXT AS $$ SELECT CASE @@ -99,7 +99,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE or REPLACE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS +CREATE FUNCTION get_cmd_type (cmd_type INTEGER) RETURNS TEXT AS $$ SELECT CASE @@ -212,7 +212,7 @@ SELECT $$ LANGUAGE SQL PARALLEL SAFE; -CREATE OR REPLACE FUNCTION histogram(_bucket int, _quryid text) +CREATE FUNCTION histogram(_bucket int, _quryid text) RETURNS SETOF RECORD AS $$ DECLARE rec record;