Peter Geoghegan <pg(at)bowt(dot)ie> writes:
> On Sat, Aug 13, 2022 at 8:21 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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