diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-08-13 18:36:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-08-13 18:36:26 +0000 |
commit | a0b7b717a4324f573d3a7651a06037557066eb77 (patch) | |
tree | bf6bcc7d519ed9289bc0eaaf9ac1aa00ce3b2e61 /contrib/xml2/pgxml.sql.in | |
parent | 2a7349f030a4dca61f188b7a7f02a51c6877e621 (diff) | |
download | postgresql-a0b7b717a4324f573d3a7651a06037557066eb77.tar.gz postgresql-a0b7b717a4324f573d3a7651a06037557066eb77.zip |
Add xml_is_well_formed, xml_is_well_formed_document, xml_is_well_formed_content
functions to the core XML code. Per discussion, the former depends on
XMLOPTION while the others do not. These supersede a version previously
offered by contrib/xml2.
Mike Fowler, reviewed by Pavel Stehule
Diffstat (limited to 'contrib/xml2/pgxml.sql.in')
-rw-r--r-- | contrib/xml2/pgxml.sql.in | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/xml2/pgxml.sql.in b/contrib/xml2/pgxml.sql.in index 98d8f81b575..0a52561135d 100644 --- a/contrib/xml2/pgxml.sql.in +++ b/contrib/xml2/pgxml.sql.in @@ -1,18 +1,14 @@ -/* $PostgreSQL: pgsql/contrib/xml2/pgxml.sql.in,v 1.12 2010/03/01 18:07:59 tgl Exp $ */ +/* $PostgreSQL: pgsql/contrib/xml2/pgxml.sql.in,v 1.13 2010/08/13 18:36:23 tgl Exp $ */ -- Adjust this setting to control where the objects get created. SET search_path = public; --SQL for XML parser -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; +AS 'xml_is_well_formed' +LANGUAGE INTERNAL STRICT STABLE; CREATE OR REPLACE FUNCTION xml_encode_special_chars(text) RETURNS text AS 'MODULE_PATHNAME' |