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 1mAv8q-00068U-Il for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 14:11:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAv8o-0003RL-JZ for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 14:11:34 +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 1mAv8o-0003RD-Bl for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 14:11:34 +0000 Received: from 19.mo7.mail-out.ovh.net ([178.33.251.118]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAv8m-0003ep-0U for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 14:11:33 +0000 Received: from player787.ha.ovh.net (unknown [10.110.103.225]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 5E8FF1B1539 for ; Tue, 3 Aug 2021 16:11:30 +0200 (CEST) Received: from darold.net (lfbn-lyo-1-1368-22.w86-207.abo.wanadoo.fr [86.207.177.22]) (Authenticated sender: gilles@darold.net) by player787.ha.ovh.net (Postfix) with ESMTPSA id 2CFFA210E820E; Tue, 3 Aug 2021 14:11:24 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G003c331bad1-4ce9-4637-a1ef-973376291ecb, 74DF0D2C8EA7C82EBBFD19D1E1F7C99FF56759CA) smtp.auth=gilles@darold.net X-OVh-ClientIp: 86.207.177.22 Subject: Re: [PATCH] proposal for regexp_count, regexp_instr, regexp_substr and regexp_replace To: Tom Lane , Erik Rijkers Cc: Gilles Darold , pgsql-hackers@lists.postgresql.org, chap@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> <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> <1702731.1627997990@sss.pgh.pa.us> From: Gilles Darold Message-ID: <57cdabdb-4d63-e6ee-66ee-1ffc462e7149@darold.net> Date: Tue, 3 Aug 2021 16:11:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1702731.1627997990@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr X-Ovh-Tracer-Id: 5661306210534530671 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrieeggdejudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepifhilhhlvghsucffrghrohhlugcuoehgihhllhgvshesuggrrhholhgurdhnvghtqeenucggtffrrghtthgvrhhnpeejueegffffgfdttefguefhheejieefffdvjedvjeffudfhgfefffduheettddvvdenucfkpheptddrtddrtddrtddpkeeirddvtdejrddujeejrddvvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejkeejrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepghhilhhlvghssegurghrohhlugdrnhgvthdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le 03/08/2021 à 15:39, Tom Lane a écrit : > 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? Sorry I have missed that, but I'm fine with this implemenation so let's keep the v6 version of the patch and drop this one. -- Gilles Darold