git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 419a8dd) | patch
Support [NO] INDENT option in XMLSERIALIZE().
2023年3月15日 20:58:59 +0000 (16:58 -0400)
2023年3月15日 20:59:09 +0000 (16:59 -0400)
commit 483bdb2afec9e33ff05fd48a00e2656e30e714b7
Support [NO] INDENT option in XMLSERIALIZE().

This adds the ability to pretty-print XML documents ... according to
libxml's somewhat idiosyncratic notions of what's pretty, anyway.
One notable divergence from a strict reading of the spec is that
libxml is willing to collapse empty nodes "<node></node>" to just
"<node/>", whereas SQL and the underlying XML spec say that this
option should only result in whitespace tweaks. Nonetheless,
it seems close enough to justify using the SQL-standard syntax.

Jim Jones, reviewed by Peter Smith and myself

Discussion: https://postgr.es/m/2f5df461-dad8-6d7d-4568-08e10608a69b@uni-muenster.de
15 files changed:
doc/src/sgml/datatype.sgml diff | blob | blame | history
src/backend/catalog/sql_features.txt diff | blob | blame | history
src/backend/executor/execExprInterp.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/parser/parse_expr.c diff | blob | blame | history
src/backend/utils/adt/xml.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/nodes/primnodes.h diff | blob | blame | history
src/include/parser/kwlist.h diff | blob | blame | history
src/include/utils/xml.h diff | blob | blame | history
src/test/regress/expected/xml.out diff | blob | blame | history
src/test/regress/expected/xml_1.out diff | blob | blame | history
src/test/regress/expected/xml_2.out diff | blob | blame | history
src/test/regress/sql/xml.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /