Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit de623f3

Browse files
committed
Fix upgrade of contrib/xml2 from 9.0.
Update script was being sloppy about two functions that have been changed since 9.0.
1 parent 0024e34 commit de623f3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

contrib/xml2/xml2--unpackaged--1.0.sql

+11
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ ALTER EXTENSION xml2 ADD function xpath_nodeset(text,text,text,text);
1313
ALTER EXTENSION xml2 ADD function xpath_string(text,text);
1414
ALTER EXTENSION xml2 ADD function xml_encode_special_chars(text);
1515
ALTER EXTENSION xml2 ADD function xml_valid(text);
16+
17+
-- xml_valid is now an alias for core xml_is_well_formed()
18+
19+
CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
20+
AS 'xml_is_well_formed'
21+
LANGUAGE INTERNAL STRICT STABLE;
22+
23+
-- xml_is_well_formed is now in core, not needed in extension.
24+
-- be careful to drop extension's copy not core's.
25+
26+
DROP FUNCTION @extschema@.xml_is_well_formed(text);

contrib/xml2/xml2.control

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
comment = 'XPath querying and XSLT'
33
default_version = '1.0'
44
module_pathname = '$libdir/pgxml'
5-
relocatable = true
5+
# non-relocatable because xml2--unpackaged--1.0.sql needs to use @extschema@
6+
relocatable = false

0 commit comments

Comments
 (0)