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

From Peter Eisentraut
Subject Re: [PATCH] Add pretty-printed XML output option
Date
Msg-id 3baf8f25-3bd7-7db5-0b31-e4c92b6269ba@enterprisedb.com
Whole thread Raw
In response to Re: [PATCH] Add pretty-printed XML output option  (Jim Jones <jim.jones@uni-muenster.de>)
Responses Re: [PATCH] Add pretty-printed XML output option
List pgsql-hackers
On 23.02.23 07:36, Jim Jones wrote:
> On 23.02.23 02:52, Peter Smith wrote:
>> Here are my review comments for patch v17-0001.
>>
>> ======
>> src/test/regress/sql/xml.sql
>>
>> The blank line(s) which previously separated the xmlserialize tests
>> from the xml IS [NOT] DOCUMENT tests are now missing...
> 
> v18 adds a new line in the xml.sql file to separate the xmlserialize 
> test cases from the rest.

In kwlist.h you have

     PG_KEYWORD("indent", INDENT, UNRESERVED_KEYWORD, AS_LABEL)

but you can actually make it BARE_LABEL, which is preferable.

More importantly, you need to add the new keyword to the 
bare_label_keyword production in gram.y.  I thought we had some tooling 
in the build system to catch this kind of omission, but it's apparently 
not working right now.

Elsewhere, let's rename the xmlformat() C function to xmlserialize() (or 
maybe something like xmlserialize_indent()), so the association is clearer.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Make some xlogreader messages more accurate
Next
From: Jim Jones
Date:
Subject: Re: [PATCH] Add pretty-printed XML output option