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 1gdR7C-0006BY-3P for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Dec 2018 02:46:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gdR7A-0007HE-Mf for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Dec 2018 02:46:08 +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 1gdR7A-0007H7-0d for pgsql-hackers@lists.postgresql.org; Sun, 30 Dec 2018 02:46:08 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gdR76-0001GH-T4 for pgsql-hackers@postgresql.org; Sun, 30 Dec 2018 02:46:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9UTItOwJOjSlGdQ23TaLd48QbAn0RmA2VjHI0naoqrM=; b=bZtXZtN4PyoyOSy+e1nbmILjOi FVVA7DOOqqh0Sq9jlFJ6wWVquHut1nnrj7WYWNJl/mspv60lTsISafKNsNZP+2Ges53NyBgptAYzS +Fa/EaP57wG6hKSMOQ48HVIJq9UEg4fLJvVlPk64J2XT/vxp022+OyK1PEpoIqgEUO2fFns5f7pAn zdTXJFs2keSajXKieSJxOI1i1bx7SVDIblFeNqKGATVkqTsTOadY9iyoIS5xvucwK4Yor6LFRn2aa Aw35SvHEmCU/x/LHfQgOIY/bRKHP2ZRzdJJCgjCqxDtvjasM6OFMK1unWWdLry2qJQeePzVE+rpGq QMC6DIcA==; Received: from [192.182.57.242] (port=53303) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gdR73-00FvsD-6N; Sat, 29 Dec 2018 21:46:02 -0500 Subject: Re: PostgreSQL vs SQL/XML Standards To: Pavel Stehule , Markus Winand References: <20181025194720.ylmw64xqlnjr5wja@alvherre.pgsql> <45C74339-3531-46BD-A595-37183C6730A1@winand.at> Cc: Alvaro Herrera , Tom Lane , PostgreSQL Hackers From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5C283168.8060001@anastigmatix.net> Date: Sat, 29 Dec 2018 21:46:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/12/18 04:58, Pavel Stehule wrote: > It is assigned to January commitfest. When I build this patch against master (4203842), it builds, but breaks make check. The diffs seem only incidental (loss of some error context output), but there are no make check errors building 4203842 unmodified, so the patch has introduced them. Example: *** ../postgresql/src/test/regress/expected/xml.out Sat Dec 29 19:58:41 2018 --- src/test/regress/results/xml.out Sat Dec 29 19:59:11 2018 *************** *** 9,16 **** LINE 1: INSERT INTO xmltest VALUES (3, ' to a paragraph there, or in an appendix (new section under SQL Conformance?) that summarizes the gulf between XPath 1.0 and the later, XQuery-compatible versions. There should be cross- reference links to this section from the "XPath 1.0" mentions in individual function descriptions. The section could be a condensation of [1] (and perhaps contain a link to [1], if links out to the wiki are allowed), and link to the W3C compatibility notes at [2] and [3]. 3) Currently, the description of XMLEXISTS notes that "the SQL standard specifies ... the construct to take an XQuery expression ... but PostgreSQL currently only supports XPath, which is a subset of XQuery". The description of XMLTABLE does not have such a note, and needs one. In both cases, the note should probably be nearer the top of the description (for XMLEXISTS, it is currently at the bottom, after the examples). 4) That note currently says "only supports XPath, which is a subset of XQuery". That would be a fair claim if we meant XPath 2.0 or later, but not XPath 1.0 (which was not a subset of any version of XQuery, and has fundamental incompatibilities with it). The note, for both XMLEXISTS and XMLTABLE, should simply say "only supports XPath 1.0", with a link to the section summarizing the incompatibilities. Those are my thoughts on how a patch to the documentation could be organized. Do they seem reasonable? -Chap [1] https://wiki.postgresql.org/wiki/PostgreSQL_vs_SQL/XML_Standards#Related_to_version_of_XPath [2] https://www.w3.org/TR/xpath20/#id-backwards-compatibility [3] https://www.w3.org/TR/2010/REC-xpath-functions-20101214/#xpath1-compatibility