Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHRtm-0000iE-TA for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 12:13:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHRtj-0006QW-7H for pgsql-general@arkaria.postgresql.org; Mon, 07 Oct 2019 12:13:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHRti-0006QG-MX for pgsql-general@lists.postgresql.org; Mon, 07 Oct 2019 12:13:54 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iHRtf-0003o1-Qd for pgsql-general@postgresql.org; Mon, 07 Oct 2019 12:13:53 +0000 Received: by mail-wr1-x432.google.com with SMTP id q9so15006570wrm.8 for ; Mon, 07 Oct 2019 05:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=276Oy9AQRhgqYSncuXg3Ua3R9vc6Kv2TmJu188F1w18=; b=jkev4wKGLZet4ma/jDs3j67lk+CT4Ci0J6ZpEnfFQnEVioLoBIbsWYm6WViAAui/Ff JE7MObiOttUz1U4eopQ7O/1lfQZbsTnmIhheh9aiSj6462QWFnxaWHZjCbRZV90RS2l+ JTHwr4yDpUXpGAk821ZX8g11cN3UC7xzH0m2zcgizDxQwB9OPH5cr9TUDISMZ1iBHDqy acIrL5bCuKRvXIPffFpHaofqjen3DywSbqZGx5+J6HMFUNhLh9V18gD7DltL9NHJq5fd vZgc9TDARE3O68AUD8uLI4bMUkWrixgUCLYdqodAqtL44MTzlItXhX0GlS8uhxT+EY9b eu5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=276Oy9AQRhgqYSncuXg3Ua3R9vc6Kv2TmJu188F1w18=; b=FtrhiQxlEssXNPjUKpm/DrowBe5Ik37glQv2cMnJMpbfZ7ITUZYE6d4DXE19TooAa+ n/tIcWopbx/CGe7uf3/jCYeCs5DPB9zBOrUR+DbjBje6EbSO4jffOm51cFTXMNifpt6g 2fFyGCthQe7VAelPThRL6zL8gqSPIrbB796MSvCqrqJKPrZI/Npokb9JDG5mc3Zmaow9 RPtoWUHbYzZZnqWAwjR936uuqeOUn5Knz+cXlJ9rL5tIgGmBueNbApdjvSLzC61JzOBD lrkM7hiEz0LbUsGD7+5bF2kcO9cPYiNg6vw3KnsKt/nxB44MrV79ODJk2YKJ+meJM3bs 36Zg== X-Gm-Message-State: APjAAAU3Lt4pnoV+w2fjg+cH+LWrQQvelfMNnu4boFf33PGujtUnshJi hpSGu6OQjrJOAt9yw9qu97TZDw== X-Google-Smtp-Source: APXvYqzQdHDyftSZ5PWkQc1I6ghh/RJTfNtA1R3b6dSmgjvQhzM3JJ3Ah/E3CGeD6lDU7J6o+Mve1A== X-Received: by 2002:a5d:4f91:: with SMTP id d17mr12343424wru.329.1570450428579; Mon, 07 Oct 2019 05:13:48 -0700 (PDT) Received: from localhost (ip-86-49-253-183.net.upcbroadband.cz. [86.49.253.183]) by smtp.gmail.com with ESMTPSA id s12sm19013095wrn.90.2019.10.07.05.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 05:13:47 -0700 (PDT) Date: Mon, 7 Oct 2019 14:13:46 +0200 From: Tomas Vondra To: Konstantin Izmailov Cc: "pgsql-general@postgresql.org" Subject: Re: COPY command returns "ERROR: invalid XML content" Message-ID: <20191007121346.4pgmw4edqkdj3jps@development> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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