pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Rijkers <er@xs4all.nl>
Cc: Gilles Darold <gilles@darold.net>
Cc: pgsql-hackers@lists.postgresql.org
Cc: chap@anastigmatix.net
Subject: Re: [PATCH] proposal for regexp_count, regexp_instr, regexp_substr and regexp_replace
Date: Tue, 03 Aug 2021 09:39:50 -0400
Message-ID: <1702731.1627997990@sss.pgh.pa.us> (raw)
In-Reply-To: <c004ff29-506c-18df-851d-08b6494c0f40@xs4all.nl>
References: <fc160ee0-c843-b024-29bb-97b5da61971f@darold.net>
	<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>
	<b0e7ffa2-e776-2b6b-d0b1-bf3289439790@darold.net>
	<1567465.1627860115@sss.pgh.pa.us>
	<672983ad-86de-9063-acc1-a1f85ef0e14d@darold.net>
	<d042905c-f0b3-be60-44b8-bd3229cca66e@darold.net>
	<ab3f3424-4969-906d-0932-800900b4647a@darold.net>
	<c004ff29-506c-18df-851d-08b6494c0f40@xs4all.nl>

Erik Rijkers <er@xs4all.nl> 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





view thread (28+ messages)  latest in thread

Message-ID: <1702731.1627997990@sss.pgh.pa.us>
Permalink:  ../1702731.1627997990@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1702731.1627997990@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, er@xs4all.nl, gilles@darold.net, chap@anastigmatix.net
  Subject: Re: [PATCH] proposal for regexp_count, regexp_instr, regexp_substr and regexp_replace
  In-Reply-To: <1702731.1627997990@sss.pgh.pa.us>
  References: <fc160ee0-c843-b024-29bb-97b5da61971f@darold.net> <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> <b0e7ffa2-e776-2b6b-d0b1-bf3289439790@darold.net> <1567465.1627860115@sss.pgh.pa.us> <672983ad-86de-9063-acc1-a1f85ef0e14d@darold.net> <d042905c-f0b3-be60-44b8-bd3229cca66e@darold.net> <ab3f3424-4969-906d-0932-800900b4647a@darold.net> <c004ff29-506c-18df-851d-08b6494c0f40@xs4all.nl> <1702731.1627997990@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox