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 1h2GWv-0002CE-DQ for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 14:31:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h2GWs-0007FP-RB for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Mar 2019 14:31:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2GWs-0007FI-FL for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 14:31:18 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2GWl-0001I0-7Q for pgsql-hackers@lists.postgresql.org; Fri, 08 Mar 2019 14:31:17 +0000 Received: by mail-qk1-x735.google.com with SMTP id x6so11261215qki.6 for ; Fri, 08 Mar 2019 06:31:10 -0800 (PST) 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:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=twyMECzFQohzL3sUvRGGKBMNYuBmByum6qCFsNFuQD8=; b=0CxEOGeYxhz8Q30splQ1YLVvvVFLhsgHSzq7q3LhGWk/Qz20uVqzlv3wVshBwjw1yB trs9EX6+H72w/Sxtv8eyAR6LM5169q38nM6dz8muD63nLav0Ioq7Gqtr00EQgy8WxZiJ MyhpYtPPmqbQk5OSqhvMtpAwlMhoOrhmSJHNV9MRSu8ZPFhX1g9tyDZLqxz7PGvzCHTe R4ahYHrygrmXieSb1m4FZK3Sy97xAnTJMFHhxTMg/wy4NQeNuh2kuuZEp6dMlxbS+PvS oPxc/QmobhERxNfFpIsU0dEvOwQnRIqfDVIHgnafRBchukUHyKx3IBnWmp655dFkhxdu Io8Q== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=twyMECzFQohzL3sUvRGGKBMNYuBmByum6qCFsNFuQD8=; b=lgtfEZYRKPHp8EL5su4sc7YRj6dKOP/GtqF1bFig9sEPryCT6rmWVb6onhEtWANEWR YtIGWrlIBdt0NRnR4n5hnqRSj+O+wjJCnZ2xiDRIBoV+GhFNqhTd27dVqRYCI7HFSpUR X6/87bHr0dsTQmKY2SvRwefNimVHNcyjqVchE8Mzcm8RnzOywCToNznvKmmgK/kZB3T1 xbm/J6D/4y/Q35BOBJu32VT0Sq5gPChXigGw1XSyxX3F4RQrp/sA+AwNhEYAHlJBst7g V5bjNOAVLI/gZCnQAsSsn9WDLX2f5P75Zca1RueTlPbNnoj4YOyYN22bOcZM4cDWY7vN ISSw== X-Gm-Message-State: APjAAAUiKX8qJ+39Gs36kjmfCXnyQkWfCiO8+Yf32aU0WFnKQkpSvAaA azVIu5Qhfzx/+wnZEeH7ubzOWQ== X-Google-Smtp-Source: APXvYqxT6l1rCvnyMpeZmNz7BtWrRHoyXplrku8XK3n+b4u9cEbjkgBgE3wWqWqNGgNsD831dJGu0g== X-Received: by 2002:ae9:ea0f:: with SMTP id f15mr14401715qkg.113.1552055468985; Fri, 08 Mar 2019 06:31:08 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id 17sm5216552qtt.18.2019.03.08.06.31.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 06:31:08 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 3CE301208DC; Fri, 8 Mar 2019 11:31:06 -0300 (-03) Date: Fri, 8 Mar 2019 11:31:06 -0300 From: Alvaro Herrera To: Pavel Stehule Cc: Chapman Flack , Markus Winand , PostgreSQL Hackers Subject: Re: PostgreSQL vs SQL/XML Standards Message-ID: <20190308143106.GA28312@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Mar-08, Pavel Stehule wrote: > looks like error in xmlXPathCompiledEval function, that produce little bit > broken result for XML_DOCUMENT_NODE type. I hadn't this problem with > libxml2 2.7.6 64bit, but I seen this issue on same version on 32bit. > > Currently I had not fresh 32 bit system to check it. > > I found a workaround - in this case copy (and release xmlNode) is not > necessary. Hmm ... going over the libxml2 2.7.6 source, I noticed that xmlFreeNodeList seem to get this right -- it uses xmlFreeDoc for XML_DOCUMENT_NODE. Maybe a sufficient answer is to change the xmlFreeNode there to xmlFreeNodeList. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services