Re: [PATCH] Add pretty-printed XML output option - Mailing list pgsql-hackers

From Nikolay Samokhvalov
Subject Re: [PATCH] Add pretty-printed XML output option
Date
Msg-id CANNMO+Kwb4_87G8qDeN+Vk1B1vX3HvgoGW+13fJ-b6rj7qbAww@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Add pretty-printed XML output option  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: [PATCH] Add pretty-printed XML output option
Re: [PATCH] Add pretty-printed XML output option
List pgsql-hackers
On Thu, Feb 9, 2023 at 2:31 AM Peter Eisentraut <peter.eisentraut@enterprisedb.com> wrote:
I suggest we call it "xmlformat", which is an established term for this.

Some very-very old, rusted memory told me that there was something in standard – and indeed, it seems it described an optional Feature X069, “XMLSerialize: INDENT” for XMLSERIALIZE. So probably pretty-printing should go there, to XMLSERIALIZE, to follow the standard?

Oracle also has an option for it in XMLSERIALIZE, although in a slightly different form, with ability to specify the number of spaces for indentation https://docs.oracle.com/database/121/SQLRF/functions268.htm#SQLRF06231.

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: some namespace.c refactoring
Next
From: Ashutosh Sharma
Date:
Subject: Re: Minimal logical decoding on standbys