diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-15 16:58:59 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-15 16:59:09 -0400 |
commit | 483bdb2afec9e33ff05fd48a00e2656e30e714b7 (patch) | |
tree | 33bc2002198e57531032a09c0813af0d9922e275 /src/include/parser | |
parent | 419a8dd8142afef790dafd91ba39afac2ca48aaf (diff) | |
download | postgresql-483bdb2afec9e33ff05fd48a00e2656e30e714b7.tar.gz postgresql-483bdb2afec9e33ff05fd48a00e2656e30e714b7.zip |
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
Diffstat (limited to 'src/include/parser')
-rw-r--r-- | src/include/parser/kwlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/parser/kwlist.h b/src/include/parser/kwlist.h index bb36213e6f4..753e9ee1742 100644 --- a/src/include/parser/kwlist.h +++ b/src/include/parser/kwlist.h @@ -205,6 +205,7 @@ PG_KEYWORD("in", IN_P, RESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("include", INCLUDE, UNRESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("including", INCLUDING, UNRESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("increment", INCREMENT, UNRESERVED_KEYWORD, BARE_LABEL) +PG_KEYWORD("indent", INDENT, UNRESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("index", INDEX, UNRESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("indexes", INDEXES, UNRESERVED_KEYWORD, BARE_LABEL) PG_KEYWORD("inherit", INHERIT, UNRESERVED_KEYWORD, BARE_LABEL) |