Skip to content

Commit

Permalink
Merge pull request #233 from ibrarahmad/REL1_0_STABLE
Browse files Browse the repository at this point in the history
PG-417: Replace 'CREATE OR REPLACE' with 'CREATE' for extension.
  • Loading branch information
ImTheKai authored May 23, 2022
2 parents c94f264 + 1b995c7 commit cc70b57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pg_stat_monitor--1.0.13.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions pg_stat_monitor--1.0.14.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions pg_stat_monitor--1.0.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cc70b57

Please sign in to comment.