Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clfk5-00076G-75 for pgsql-committers@arkaria.postgresql.org; Wed, 08 Mar 2017 17:51:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1clfk4-0007cU-N3 for pgsql-committers@arkaria.postgresql.org; Wed, 08 Mar 2017 17:51:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clfk4-0007bz-0V for pgsql-committers@postgresql.org; Wed, 08 Mar 2017 17:51:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clfk1-0002zC-WD for pgsql-committers@postgresql.org; Wed, 08 Mar 2017 17:51:14 +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 v28HpBkF009179; Wed, 8 Mar 2017 12:51:11 -0500 From: Tom Lane To: Alvaro Herrera cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix XMLTABLE on older libxml2 In-reply-to: References: Comments: In-reply-to Alvaro Herrera message dated "Wed, 08 Mar 2017 16:30:46 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9177.1488995471.1@sss.pgh.pa.us> Date: Wed, 08 Mar 2017 12:51:11 -0500 Message-ID: <9178.1488995471@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Alvaro Herrera writes: > Fix XMLTABLE on older libxml2 > libxml2 older than 2.9.1 does not have xmlXPathSetContextNode (released > in 2013, so reasonable platforms have trouble). That function is fairly > trivial, so I have inlined it in the one added caller. This passes > tests on my machine; let's see what the buildfarm thinks about it. > Per joint complaint from Tom Lane and buildfarm. Thanks, this works for me. At some point we might need to do this more honestly, ie add a configure probe and do #ifdef HAVE_XMLXPATHSETCONTEXTNODE xmlXPathSetContextNode(cur, xtCxt->xpathcxt); #else xtCxt->xpathcxt->node = cur; #endif but that can probably wait until libxml does something that breaks the direct-assignment coding. If the latter is the way you were supposed to do it before, I think they'd be hesitant to break it. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers