summaryrefslogtreecommitdiff
path: root/contrib/xml2/pgxml.sql.in
diff options
context:
space:
mode:
authorTom Lane2006-09-16 16:18:11 +0000
committerTom Lane2006-09-16 16:18:11 +0000
commit1246d797e4b21e5bf4267e8b663057b92258b728 (patch)
treec88e5e616d86090aabc9ee1fb503b71946544c86 /contrib/xml2/pgxml.sql.in
parent801cbe3310bc52c0ab41ec66bfe3893a16255189 (diff)
Rename xml_valid() to xml_is_well_formed(), but provide a temporary
alias with the old name for backwards compatibility. Per discussion, the old name is actively wrong because validity and well-formedness have different meanings in XML.
Diffstat (limited to 'contrib/xml2/pgxml.sql.in')
-rw-r--r--contrib/xml2/pgxml.sql.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/xml2/pgxml.sql.in b/contrib/xml2/pgxml.sql.in
index 006f3f7f53..4555cc8331 100644
--- a/contrib/xml2/pgxml.sql.in
+++ b/contrib/xml2/pgxml.sql.in
@@ -1,8 +1,12 @@
--SQL for XML parser
-CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
+CREATE OR REPLACE FUNCTION xml_is_well_formed(text) RETURNS bool
AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE;
+-- deprecated old name for xml_is_well_formed
+CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
+ AS 'MODULE_PATHNAME', 'xml_is_well_formed' LANGUAGE C STRICT IMMUTABLE;
+
CREATE OR REPLACE FUNCTION xml_encode_special_chars(text) RETURNS text
AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE;