Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbr8W-0001Fm-8w for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2017 15:59:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbr8V-0007qq-LJ for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2017 15:59:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbr76-0006HO-JE for pgsql-hackers@postgresql.org; Thu, 09 Feb 2017 15:58:28 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbr71-0001Lj-DC for pgsql-hackers@postgresql.org; Thu, 09 Feb 2017 15:58:27 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 166DA2093D; Thu, 9 Feb 2017 10:58:22 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 09 Feb 2017 10:58:22 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=Uc/QSVOLyhZ+ZXFbxBNWNoTnogw=; b=G7nHq1F/dBH4J5pyPyGC 4HE3B2SXDD/IEp3i7j6XqawipTA44XvtUO2q9L48F+xvIidQd5/PrnuABZarnzZ9 oaj1Mqlik/H4bFHE08H3tqxiJea6+zp/EED1TnCGMeZAAGvsR7MnO8wFlOHvDiKG hkV+JdapRZS6vWE6d2mtFjI= X-ME-Sender: X-Sasl-enc: oFnWXKXjpfxKErn5daUeN5I0yteCjK+QJa/cXmsJsiTa 1486655901 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id CFE29245D4; Thu, 9 Feb 2017 10:58:21 -0500 (EST) Subject: Re: ICU integration References: <85364fde-091f-bbc0-fec2-e3ede39840a6@2ndquadrant.com> <3a88fa29-275b-f547-9957-86d4b2cd68db@2ndquadrant.com> <6ee64972-fc4d-b169-7f25-0940118f59ce@2ndquadrant.com> Cc: pgsql-hackers To: Peter Geoghegan From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <8149a3ad-c3bb-4e5e-db01-2cfe533144b2@2ndquadrant.com> Date: Thu, 9 Feb 2017 10:58:21 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <6ee64972-fc4d-b169-7f25-0940118f59ce@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 1/24/17 12:45 PM, Peter Eisentraut wrote: > On 1/9/17 3:45 PM, Peter Geoghegan wrote: >> * I think it's worth looking into ucol_nextSortKeyPart(), and using >> that as an alternative to ucol_getSortKey(). It doesn't seem any >> harder, and when I tested it it was clearly faster. (I think that >> ucol_nextSortKeyPart() is more or less intended to be used for >> abbreviated keys.) > I will try to look into that. I think I have this sorted out. What I don't understand, however, is why varstr_abbrev_convert() makes a point of looping until the result of strxfrm() fits into the output buffer (buf2), when we only need 8 bytes, and we throw away the rest later. Wouldn't it work to just request 8 bytes? If there is a problem with just requesting 8 bytes, then I'm wondering how this would affect the ICU code branch. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers