Skip to content

Commit c91a5f0

Browse files
committed
Some 1.0 versions already contained yaml/xml, use "or replace" in upgrade script
1 parent ed51bef commit c91a5f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pg_show_plans--1.0--1.1.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ CREATE VIEW pg_show_plans AS
1919

2020
GRANT SELECT ON pg_show_plans TO PUBLIC;
2121

22-
CREATE FUNCTION pgsp_format_yaml()
22+
-- Some 1.0 versions already contained yaml/xml, use "or replace" here
23+
CREATE OR REPLACE FUNCTION pgsp_format_yaml()
2324
RETURNS void
2425
AS 'MODULE_PATHNAME'
2526
LANGUAGE C;
2627

27-
CREATE FUNCTION pgsp_format_xml()
28+
CREATE OR REPLACE FUNCTION pgsp_format_xml()
2829
RETURNS void
2930
AS 'MODULE_PATHNAME'
3031
LANGUAGE C;

0 commit comments

Comments
 (0)