Re: [PATCH] regexp_positions ( string text, pattern text, flags text ) → setof int4range[]

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Joel Jacobson <joel(at)compiler(dot)org>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andreas Karlsson <andreas(at)proxel(dot)se>, David Fetter <david(at)fetter(dot)org>
Subject: Re: [PATCH] regexp_positions ( string text, pattern text, flags text ) → setof int4range[]
Date: 2021-03-02 00:12:21
Message-ID: 942AC67C-E814-4F75-B373-66A122D7E260@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Mar 1, 2021, at 9:38 AM, Joel Jacobson <joel(at)compiler(dot)org> wrote:
>
> Forgive me for just sending a patch without much discussion on the list,
> but it was so easy to implement, so I thought an implementation can
> help the discussion on if this is something we want or not.

I like the idea so I did a bit of testing. I think the following should not error, but does:

+SELECT regexp_positions('foObARbEqUEbAz', $re$(?=beque)$re$, 'i');
+ERROR: range lower bound must be less than or equal to range upper bound


Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Juan José Santamaría Flecha 2021-03-02 00:28:57 Re: [PATCH] Bug fix in initdb output
Previous Message Dian M Fay 2021-03-02 00:02:50 Re: TRIM_ARRAY