pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: adam.warland@infor.com
Cc: pgsql-bugs@lists.postgresql.org
Cc: peter@eisentraut.org
Subject: Re: BUG #19341: REPLACE() fails to match final character when using nondeterministic ICU collation
Date: Tue, 02 Dec 2025 22:44:53 +0100
Message-ID: <e95a37e161a7d5de4436af7119f5fc1307b8ee61.camel@cybertec.at> (raw)
In-Reply-To: <436944.1764708826@sss.pgh.pa.us>
References: <19341-1d9a22915edfec58@postgresql.org>
	<60b467ac47d5c6bbb9c21c3bdfecce8e5de60cda.camel@cybertec.at>
	<6935ea1e-cfb1-400b-9057-3d43b55d621a@iki.fi>
	<9f47c6b24d6cf59002603caf19b8b3f4854176be.camel@cybertec.at>
	<375807.1764696352@sss.pgh.pa.us>
	<464a14fcbee9567ace136716714b8c18f9bd87fb.camel@cybertec.at>
	<436944.1764708826@sss.pgh.pa.us>

On Tue, 2025-12-02 at 15:53 -0500, Tom Lane wrote:
> On the other hand ... is that comment really right about zero-length
> match being possible?  If it is, the API for this function is in
> need of redesign, because callers that try to find "the next match"
> would go into an infinite loop re-finding the same zero-length
> match over and over.

I know too little about exotic collations to answer that, but it sure
would be a problem.  All I find in the discussion is the claim by
Peter E. in [1] that it is so.  Perhaps he can enlighten us.

Yours,
Laurenz Albe


 [1]: https://postgr.es/m/6107daa2-5cf7-4cf2-a526-626be1d15b18%40eisentraut.org





view thread (16+ messages)  latest in thread

Message-ID: <e95a37e161a7d5de4436af7119f5fc1307b8ee61.camel@cybertec.at>
Permalink:  ../e95a37e161a7d5de4436af7119f5fc1307b8ee61.camel@cybertec.at/
Also on:    postgresql.org/message-id/e95a37e161a7d5de4436af7119f5fc1307b8ee61.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us, hlinnaka@iki.fi, adam.warland@infor.com, pgsql-bugs@lists.postgresql.org, peter@eisentraut.org
  Subject: Re: BUG #19341: REPLACE() fails to match final character when using nondeterministic ICU collation
  In-Reply-To: <e95a37e161a7d5de4436af7119f5fc1307b8ee61.camel@cybertec.at>

* 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