xmlserialize bug - extra empty row at the end - Mailing list pgsql-hackers

From Pavel Stehule
Subject xmlserialize bug - extra empty row at the end
Date
Msg-id CAFj8pRCNTi2yHBXcdYf-cYZ63R8Laf9L49Q_uxt+A5WXKPPhxg@mail.gmail.com
Whole thread Raw
Responses Re: xmlserialize bug - extra empty row at the end  (Jim Jones <jim.jones@uni-muenster.de>)
Re: xmlserialize bug - extra empty row at the end  (Isaac Morland <isaac.morland@gmail.com>)
List pgsql-hackers
Hi

maybe I found a bug in xmlserialize

SELECT xmlserialize(DOCUMENT '<foo><bar><val x="y">42</val></bar></foo>' AS varchar INDENT);

(2023-04-23 07:27:53) postgres=# SELECT xmlserialize(DOCUMENT '<foo><bar><val x="y">42</val></bar></foo>' AS varchar INDENT);
┌─────────────────────────┐
│      xmlserialize       │
╞═════════════════════════╡
│ <foo>                  ↵│
│   <bar>                ↵│
│     <val x="y">42</val>↵│
│   </bar>               ↵│
│ </foo>                 ↵│
│                         │
└─────────────────────────┘
(1 row)

Looks so there is an extra empty row.

Regards

Pavel

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options
Next
From: Richard Guo
Date:
Subject: Re: Improve list manipulation in several places