xmlserialize bug - extra empty row at the end

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: xmlserialize bug - extra empty row at the end
Date: 2023-04-23 05:31:04
Message-ID: CAFj8pRCNTi2yHBXcdYf-cYZ63R8Laf9L49Q_uxt+A5WXKPPhxg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2023-04-23 06:42:53 Re: Improve list manipulation in several places
Previous Message Tatsuo Ishii 2023-04-23 03:29:24 Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options