mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
parent
a9d0f1cff3
commit
9522ec3e70
@ -1851,7 +1851,7 @@ bttextfastcmp_locale(Datum x, Datum y, SortSupport ssup)
|
|||||||
if (len2 >= tss->buflen2)
|
if (len2 >= tss->buflen2)
|
||||||
{
|
{
|
||||||
pfree(tss->buf2);
|
pfree(tss->buf2);
|
||||||
tss->buflen1 = Max(len2 + 1, Min(tss->buflen2 * 2, MaxAllocSize));
|
tss->buflen2 = Max(len2 + 1, Min(tss->buflen2 * 2, MaxAllocSize));
|
||||||
tss->buf2 = MemoryContextAlloc(ssup->ssup_cxt, tss->buflen2);
|
tss->buf2 = MemoryContextAlloc(ssup->ssup_cxt, tss->buflen2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user