Re: add function argument names to regex* functions. - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: add function argument names to regex* functions.
Date
Msg-id 66450B93.2070904@acm.org
Whole thread Raw
In response to Re: add function argument names to regex* functions.  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: add function argument names to regex* functions.
List pgsql-hackers
On 05/15/24 15:07, Robert Haas wrote:
> is. I believe that if I were reading the documentation, count would be
> clearer to me than N, N would probably still be clear enough, and
> replace_at wouldn't be clear at all. I'd expect replace_at to be a
> character position or something, not an occurrence count.

You've said the magic word. In the analogous (but XQuery-based)
ISO standard regex functions, the argument that does that is identified
with the keyword OCCURRENCE.

What would be wrong with that, for consistency's sake?

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Incorrect Assert in BufFileSize()?
Next
From: "David G. Johnston"
Date:
Subject: Re: add function argument names to regex* functions.