Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNzT8-0004LM-I9 for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 14:54:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNzT7-00089T-7M for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 14:54:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNzT7-00089L-0a for pgsql-hackers@lists.postgresql.org; Sun, 21 Mar 2021 14:54:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNzT0-000624-NI for pgsql-hackers@lists.postgresql.org; Sun, 21 Mar 2021 14:54:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12LErHo4345477; Sun, 21 Mar 2021 10:53:17 -0400 From: Tom Lane To: Chapman Flack cc: Gilles Darold , er@xs4all.nl, pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] proposal for regexp_count, regexp_instr, regexp_substr and regexp_replace In-reply-to: <60575B5A.4080807@anastigmatix.net> References: <2292303d-766d-2172-2942-b076a3bb6505@darold.net> <2122577845.234888.1616324857283@webmailclassic.xs4all.nl> <9f91e4e7-19c8-d8e0-6955-fefaebd4c8fe@darold.net> <60575B5A.4080807@anastigmatix.net> Comments: In-reply-to Chapman Flack message dated "Sun, 21 Mar 2021 10:42:34 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <345475.1616338397.1@sss.pgh.pa.us> Date: Sun, 21 Mar 2021 10:53:17 -0400 Message-ID: <345476.1616338397@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chapman Flack writes: > If this turns out to be a case of "attached the wrong patch, here's > the one that does implement foo_regex functions!" then I reserve an > objection to that. :) +1 to that. Just to add a note, I do have some ideas about extending our regex parser so that it could duplicate the XQuery syntax --- none of the points we mention in 9.7.3.8 seem insurmountable. I'm not planning to work on that in the near future, mind you, but I definitely think that we don't want to paint ourselves into a corner where we've already implemented the XQuery regex functions with the wrong behavior. regards, tom lane