From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Konstantin Izmailov <pgfizm@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: COPY command returns "ERROR: invalid XML content"
Date: Mon, 7 Oct 2019 14:13:46 +0200
Message-ID: <20191007121346.4pgmw4edqkdj3jps@development> (raw)
In-Reply-To: <CAAw-MsfDCUO3AbY7TqoaJLTRB_DVXCgZio4_MTDDnNkvU+GP5Q@mail.gmail.com>
References: <CAAw-MsfDCUO3AbY7TqoaJLTRB_DVXCgZio4_MTDDnNkvU+GP5Q@mail.gmail.com>
On Sun, Oct 06, 2019 at 08:45:40PM -0700, Konstantin Izmailov wrote:
>Hi,
>I'm using libpq (v10) to import lots of xml files into a PG10 table. I
>noticed if number of records imported exceeds 2100 then the following error
>is returned:
>ERROR: invalid XML content
>DETAIL: line 1: Couldn't find end of Start Tag
>timeBasedFileNamingAndTriggerin line 1
>logFile.%d{yyyy-MM-dd}.%i.html</fileNamePattern><timeBasedFileNamingAndTriggerin
>
My guess is this is an issue/limitation in libxml2, which we use to
parse and process XML. What libxml2 version you have installed? Can you
share an example of a XML document to reproduce the issue?
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, pgfizm@gmail.com
Subject: Re: COPY command returns "ERROR: invalid XML content"
In-Reply-To: <20191007121346.4pgmw4edqkdj3jps@development>
References: <CAAw-MsfDCUO3AbY7TqoaJLTRB_DVXCgZio4_MTDDnNkvU+GP5Q@mail.gmail.com> <20191007121346.4pgmw4edqkdj3jps@development>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox