From 9522ec3e707a93d25a99e477af76d7b186fe20de Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 26 Aug 2014 15:58:50 -0400 Subject: [PATCH] Fix typo in b34e37bfefbed1bf9396dde18f308d8b96fd176c. Spotted by Peter Geoghegan. --- src/backend/utils/adt/varlena.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 1bd8abbe58..75495425f8 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -1851,7 +1851,7 @@ bttextfastcmp_locale(Datum x, Datum y, SortSupport ssup) if (len2 >= tss->buflen2) { 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); }