Various fixes in the logic of XML functions:
Peter Eisentraut <peter_e@gmx.net>
Various fixes in the logic of XML functions: - Add new SQL command SET XML OPTION (also available via regular GUC) to control the DOCUMENT vs. CONTENT option in implicit parsing and serialization operations. - Subtle corrections in the handling of the standalone property in xmlroot(). - Allow xmlroot() to work on content fragments. - Subtle corrections in the handling of the version property in xmlconcat(). - Code refactoring for producing XML declarations.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +33 −1 |
| doc/src/sgml/datatype.sgml | modified | +19 −1 |
| src/backend/executor/execQual.c | modified | +2 −5 |
| src/backend/parser/gram.y | modified | +15 −14 |
| src/backend/parser/keywords.c | modified | +2 −1 |
| src/backend/parser/parse_expr.c | modified | +3 −2 |
| src/backend/utils/adt/xml.c | modified | +91 −78 |
| src/backend/utils/misc/guc.c | modified | +31 −1 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +2 −0 |
| src/include/utils/xml.h | modified | +17 −1 |
| src/test/regress/expected/xml_1.out | modified | +25 −1 |
| src/test/regress/expected/xml.out | modified | +71 −16 |
| src/test/regress/sql/xml.sql | modified | +18 −0 |