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 559703.1660450255@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:
> On Sat, Aug 13, 2022 at 8:21 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hmm, but if we're enlarging the buffer, doesn't that imply
>> a new input value?  Seems like invalidation must occur anyway.

> Yeah, on second thought it should be invalidated anyway (I had to
> check because the details of how we cache strxfrm() and strcoll() are
> tricky). Even still, I think that we should just use repalloc for
> this.

Works for me.  I'll see about pushing the fix tomorrow.  Thanks
for the additional investigation!

            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: Tom Lane
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation