agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Voillequin, Jean-Marc <Jean-Marc.Voillequin@moodys.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: xpath insert unexpected newlines
Date: Mon, 22 Apr 2019 15:48:38 -0400
Message-ID: <23856.1555962518@sss.pgh.pa.us> (raw)
In-Reply-To: <8718.1555683683@sss.pgh.pa.us>
References: <1EC8157EB499BF459A516ADCF135ADCE3A23A9CA@LON-WGMSX712.ad.moodys.net>
<8718.1555683683@sss.pgh.pa.us>
I wrote:
> [ redirecting to pgsql-bugs ]
> "Voillequin, Jean-Marc" <Jean-Marc.Voillequin@moodys.com> writes:
>> It seems that xpath function add unexpected newlines in the xml elements it returns as array:
> I tried this:
> - bytes = xmlNodeDump(buf, NULL, cur_copy, 0, 1);
> + bytes = xmlNodeDump(buf, NULL, cur_copy, 0, 0);
> and that makes the discrepancy go away (both results are printed without
> any added whitespace).
> Thoughts?
[ crickets ]
Hearing nothing, I propose to change this in HEAD but not back-patch.
It still seems like a bug, but given the lack of previous complaints,
I'm not sure we'd get plaudits for changing this behavior in back
branches.
regards, tom lane
view thread (3+ messages)
Message-ID: <23856.1555962518@sss.pgh.pa.us>
Permalink: ../23856.1555962518@sss.pgh.pa.us/
Also on: postgresql.org/message-id/23856.1555962518@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, Jean-Marc.Voillequin@moodys.com, pgsql-bugs@lists.postgresql.org
Subject: Re: xpath insert unexpected newlines
In-Reply-To: <23856.1555962518@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox