diff --git a/pg_show_plans--1.0--1.1.sql b/pg_show_plans--1.0--1.1.sql index 76d1ba2..3c0478c 100644 --- a/pg_show_plans--1.0--1.1.sql +++ b/pg_show_plans--1.0--1.1.sql @@ -19,12 +19,13 @@ CREATE VIEW pg_show_plans AS GRANT SELECT ON pg_show_plans TO PUBLIC; -CREATE FUNCTION pgsp_format_yaml() +-- Some 1.0 versions already contained yaml/xml, use "or replace" here +CREATE OR REPLACE FUNCTION pgsp_format_yaml() RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C; -CREATE FUNCTION pgsp_format_xml() +CREATE OR REPLACE FUNCTION pgsp_format_xml() RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C;