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 1h5GLx-0000iF-6h for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Mar 2019 20:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5GLv-00032F-Tn for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Mar 2019 20:56:23 +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 1h5GLv-0002to-Hb for pgsql-hackers@lists.postgresql.org; Sat, 16 Mar 2019 20:56:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5GLs-0006VI-Vm for pgsql-hackers@postgresql.org; Sat, 16 Mar 2019 20:56:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2GKtcDM023320; Sat, 16 Mar 2019 16:55:38 -0400 From: Tom Lane To: Chapman Flack cc: Ryan Lambert , pgsql-hackers@postgresql.org Subject: Re: Fix XML handling with DOCTYPE In-reply-to: <5C8D5D16.7090206@anastigmatix.net> References: <5C8D5D16.7090206@anastigmatix.net> Comments: In-reply-to Chapman Flack message dated "Sat, 16 Mar 2019 16:31:18 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23318.1552769738.1@sss.pgh.pa.us> Date: Sat, 16 Mar 2019 16:55:38 -0400 Message-ID: <23319.1552769738@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Chapman Flack writes: > A patch for your issue is currently registered in the 2019-03 commitfest[1]. Oh! I apologize for saying nobody was working on this issue. Taking a very quick look at your patch, though, I dunno --- it seems like it adds a boatload of new assumptions about libxml's data structures and error-reporting behavior. I'm sure it works for you, but will it work across a wide range of libxml versions? What do you think of the idea I just posted about parsing off the DOCTYPE thing for ourselves, and not letting libxml see it? regards, tom lane