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 1mAuf5-0005B7-VR for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 13:40:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAuf4-00028x-UM for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 13:40:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAuf4-00028p-MO for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 13:40:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAuex-0003Pt-Eh for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 13:40:50 +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 173DdoCS1702732; Tue, 3 Aug 2021 09:39:50 -0400 From: Tom Lane To: Erik Rijkers cc: Gilles Darold , pgsql-hackers@lists.postgresql.org, chap@anastigmatix.net Subject: Re: [PATCH] proposal for regexp_count, regexp_instr, regexp_substr and regexp_replace In-reply-to: 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> <345476.1616338397@sss.pgh.pa.us> <45fe2893-1efc-1666-3ea5-b5fb1918c7fa@gmail.com> <212635.1627329361@sss.pgh.pa.us> <2204c4a4-8ee8-abdd-d5ca-d0b6893f96ab@darold.net> <1124806.1627681104@sss.pgh.pa.us> <1567465.1627860115@sss.pgh.pa.us> <672983ad-86de-9063-acc1-a1f85ef0e14d@darold.net> Comments: In-reply-to Erik Rijkers message dated "Tue, 03 Aug 2021 15:02:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1702730.1627997990.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 03 Aug 2021 09:39:50 -0400 Message-ID: <1702731.1627997990@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Erik Rijkers writes: > On 8/3/21 1:26 PM, Gilles Darold wrote: >> Le 03/08/2021 à 11:45, Gilles Darold a écrit : >>> Actually I just found that the regexp_like() function doesn't support >>> the start parameter which is something we should support. I saw that >>> Oracle do not support it but DB2 does and I think we should also >>> support it. I will post a new version of the patch once it is done. > +1 > I for one am in favor of this 'start'-argument addition. Slightly > harder usage, but more precise manipulation. As I said upthread, I am *not* in favor of making those DB2 additions. We do not need to create ambiguities around those functions like the one we have for regexp_replace. If Oracle doesn't have those options, why do we need them? regards, tom lane