Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
Date
Msg-id 555147.1660447264@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
List pgsql-bugs
Peter Geoghegan <pg@bowt.ie> writes:
> I think that repalloc might even be mandatory. These buffers are used
> as caches that allow us to avoid repeat strxfrm()/strcoll() calls,
> which is quite a useful optimization. But we're not accounting for
> that here -- we're not invalidating the cache. We wouldn't have to
> bother with that if we just used repalloc().

Hmm, but if we're enlarging the buffer, doesn't that imply
a new input value?  Seems like invalidation must occur anyway.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
Next
From: Peter Geoghegan
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation