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 1hX3WB-00072N-6i for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2019 12:53:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hX3W8-0007oV-Na for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2019 12:53:48 +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 1hX3W8-0007oO-0J for pgsql-hackers@lists.postgresql.org; Sat, 01 Jun 2019 12:53:48 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hX3W0-0000M0-Lj for pgsql-hackers@postgresql.org; Sat, 01 Jun 2019 12:53:46 +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:References:Subject:CC:To:MIME-Version:From:Date:Message-ID: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=HVHbQhzhT7rw0/ABMM5GjTVyfISjCs7QU97aIss/i7E=; b=wqKXgaD7ckIOv6EfTjcr+AP9en 8VniXCFJEjo8oV2OC6t7BeMSMCxg1wR4HfahPb6ElzZPGvrTzNSBHHlI6/ZPJWygnNJuv0Dl2/l86 maB4huitiN3z01LibxDnx7Ppr9l1vF0yqUd9oWN3HsoQ8N3NRHkrNCFhOMFQpC88sdj40gZI6sAyP aADoF4T7rK5xiO+lZoLBt6fuLqB6qfZimM5nnnkH+zLfnUWFvnCv4j01jxPOvQ7rPurp7kKC07fKc h5rbbtORglJVb978WvoGth1dseDFjvjT1UcPBRcOHcWpM5DljA85wyNxeX+cFvCoV663KnayOEXHF rpv/LLLQ==; Received: from cpeac202e03fd73-cmac202e03fd70.sdns.net.rogers.com ([174.115.19.69]:41701 helo=[192.168.0.29]) by bay.acenet.us with esmtpsa (TLSv1:ECDHE-RSA-AES128-SHA:128) (Exim 4.92) (envelope-from ) id 1hX3Vx-00DJqi-Ut; Sat, 01 Jun 2019 08:53:39 -0400 Message-ID: <5CF2754F.7000702@anastigmatix.net> Date: Sat, 01 Jun 2019 08:53:35 -0400 From: Chapman Flack User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Alvaro Herrera CC: PostgreSQL Hackers Subject: Re: PostgreSQL vs SQL/XML Standards References: <20190531200438.GA26307@alvherre.pgsql> In-Reply-To: <20190531200438.GA26307@alvherre.pgsql> Content-Type: text/plain; charset=ISO-8859-1 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 05/31/19 16:04, Alvaro Herrera wrote: > https://www.iso.org/standard/41528.html "XQuery Regular Expression > Support in SQL" Although I hadn't seen that particular document, I did see those in the SQL spec and mention them in the wiki page [1]. I should point out that's also a conformance note in the new SQL/JSON support [2], as the standard specifies XQuery regular expressions for jsonpath's like_regex predicate, where we're applying POSIX ones instead. Doesn't change my thinking much ... I think we should support the stuff. :) ... using a non-in-house-developed XQuery library to do it, or better yet, a choice of non-in-house-developed XQuery libraries. I still think the second idea I suggested on the wiki seems like the most promising road map [3], though it'll involve a few preparatory stops along the way. -Chap [1] https://wiki.postgresql.org/wiki/PostgreSQL_vs_SQL/XML_Standards#XML_Query_regular_expressions [2] https://github.com/obartunov/sqljsondoc/blob/master/README.jsonpath.md#sqljson-conformance [3] https://wiki.postgresql.org/wiki/PostgreSQL_vs_SQL/XML_Standards#Proposal_2:_desugaring_to_calls_on_normal_extension_functions