Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMXja-0057ms-5x for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 18:18:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rMXjZ-00H6dR-57 for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Jan 2024 18:18:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMXjY-00H6dJ-Sd for pgsql-bugs@lists.postgresql.org; Sun, 07 Jan 2024 18:18:52 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMXjW-000LkO-M6 for pgsql-bugs@lists.postgresql.org; Sun, 07 Jan 2024 18:18:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 407IIn9a1616258; Sun, 7 Jan 2024 13:18:49 -0500 From: Tom Lane To: d.koval@postgrespro.ru cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18274: Error 'invalid XML content' In-reply-to: <18274-98d16bc03520665f@postgresql.org> References: <18274-98d16bc03520665f@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 06 Jan 2024 22:20:36 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1616256.1704651529.1@sss.pgh.pa.us> Date: Sun, 07 Jan 2024 13:18:49 -0500 Message-ID: <1616257.1704651529@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > The problem is in the libxml2 library (in xmlParseBalancedChunkMemory > function), which is used in PostgreSQL and does not support the > XML_PARSE_HUGE flag. > There have been attempts to correct this problem [1]. > Apparently they were unsuccessful because libxml2 technical support refused > to fix the xmlParseBalancedChunkMemory function. > I'd like to know what the community's opinion is regarding this error: > 1) the error is correct and does not need to be corrected; > 2) corrections should be made in the libxml2 library; > 3) corrections should be made in PostgreSQL (maybe need to stop using the > xmlParseBalancedChunkMemory function or make other corrections); > 4) ...? libxml2 seems to be a little moribund, so I'm not sure that waiting for #2 to happen will yield results. On the other hand, XML is pretty much a development backwater in Postgres too, so if you are hoping for somebody else to do #3 you are unlikely to get anywhere. If you want to work on #3 yourself, have at it. regards, tom lane