diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 9e95f95f01..fc5be3a106 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -3202,11 +3202,13 @@ SELECT * FROM test; advantage over storing XML data in a text field is that it checks the input values for well-formedness, and there are support functions to perform type-safe operations on it; see . + linkend="functions-xml">. Use of this data type requires the + installation to have been built with configure + --with-libxml. - In particular, the xml type can store well-formed + The xml type can store well-formed documents, as defined by the XML standard, as well as content fragments, which are defined by the production XMLDecl? content in the XML diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index cc872d8234..b80b4a95c9 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -7511,7 +7511,9 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple linkend="datatype-xml"> for information about the xml type. The function-like expressions xmlparse and xmlserialize for converting to and from - type xml are not repeated here. + type xml are not repeated here. Use of many of these + xml functions requires the installation to have been built + with configure --with-libxml. diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index 4fea991283..b0a75a1478 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.39 2007/04/02 03:49:39 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.40 2007/04/05 01:46:27 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -112,7 +112,7 @@ XmlOptionType xmloption; #define NO_XML_SUPPORT() \ ereport(ERROR, \ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \ - errmsg("no XML support in this installation"))) + errmsg("feature not supported; no libxml support in this installation"))) #define _textin(str) DirectFunctionCall1(textin, CStringGetDatum(str))