Skip to content

Commit

Permalink
Some 1.0 versions already contained yaml/xml, use "or replace" in upg…
Browse files Browse the repository at this point in the history
…rade script
  • Loading branch information
df7cb committed Mar 28, 2023
1 parent ed51bef commit c91a5f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pg_show_plans--1.0--1.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c91a5f0

Please sign in to comment.