Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p05tR-00055r-Le for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 19:03:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p05tQ-0002a6-IC for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 19:03:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p05tQ-0002Zx-8L for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 19:03:44 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p05tO-0006TR-01 for pgsql-hackers@postgresql.org; Tue, 29 Nov 2022 19:03:43 +0000 Received: by mail-pl1-x633.google.com with SMTP id io19so14352003plb.8 for ; Tue, 29 Nov 2022 11:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=KsUro2uu8a0Ib3atBWoUxtIVQT1mY/8UuyAGlowd/m8=; b=Z3OmqojXmbi2IvM24/szWLCYQWDXIn9ihXTo5VloQ3HKlGRwyWXuDP5nPH0QkSQmSH CHMeW6NjMFTLCerrK+IUUb0BTd8PwnsvdI2AWtaviDv+u1Di5soB/h3jpUOcIBSbX1Pf bOCiU63fEPOupcmqPeF9W8PcVIAi2UtzxFnXdbzvPcsx66nrC4ABBbhBC81YOS//RULB lRpLRqbRBAd8cDxkOZyDsRqIKIXHB9Hsp6FdVPsNVF8fRjKHAACRiL0/oKy4S4OwfNTO xQgj4z6ay5qWOzV1B6tBcvOvmaq4cOC/txxQbb+rIeayHyT6k5YyQ4QcqM8acrw9naxf z3TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KsUro2uu8a0Ib3atBWoUxtIVQT1mY/8UuyAGlowd/m8=; b=X1Ryklu7grHGn6ztxHo31p5BSzeA2glw19CJJmESwjYYzjAOqrc2ADZK5XNTuQzAKq ynx3PPqZeZdHMEyzW1CiDAZTcIpJZm8XznXpqyHa+Byo5FsMqR+JWBiQtR2sVA7SNp+C zl61D564AA50t3jBnCh+3mSZa+WG4EfxT8SzsaACVDs0KIvcyG1PvjowbJCfa6kfRgcF g27XS3mtc/jO/5NIgKu9YkH2Zr38bPJY1egxZwiGLyGGCOWMT9zajNoJdQ0sd8j/k7s0 bKAqdwzd+XTMoCJb121P64RzZ7vlh+n9/SHeurKZu4cK/xNiSNylQRUGjY7m8G+KWzYI ztuA== X-Gm-Message-State: ANoB5pmCgVtrjLv4HjCF/bFWAvt45dKw1agd+lUQRh0Hxsp028ab1IiI nA+Ytgem0GHFAxxAM+9McFrPNw== X-Google-Smtp-Source: AA0mqf7osobB+V1yMK2xCcFIdbH/ZXP1M1bycrEZlj3cLn/yhCvruD78FgjztdzwjJdSMyWnwxljJQ== X-Received: by 2002:a17:902:e887:b0:189:1fcf:6ceb with SMTP id w7-20020a170902e88700b001891fcf6cebmr37584345plg.45.1669748621073; Tue, 29 Nov 2022 11:03:41 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id w11-20020a170902ca0b00b001868ed86a95sm11106838pld.174.2022.11.29.11.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 11:03:40 -0800 (PST) Message-ID: Subject: Re: Collation version tracking for macOS From: Jeff Davis To: Thomas Munro , Jeremy Schneider Cc: Peter Eisentraut , Peter Geoghegan , "Nasby, Jim" , Tom Lane , pgsql-hackers Date: Tue, 29 Nov 2022 11:03:39 -0800 In-Reply-To: References: <398aabd1-ad95-ba2d-d70a-dd5d90bf6e07@enterprisedb.com> <606bd2baa6d65b38fee6eb23bba40c5da210255b.camel@j-davis.com> <9f8e9b5a3352478d4cf7d6c0a5dd7e82496be4b6.camel@j-davis.com> <346f836208a39009c1998ed5a41c7f1a0be36911.camel@j-davis.com> <0f7922d4f411376f420ec9139febeae4cdc748a6.camel@j-davis.com> <331d8ffd-0bfa-9f5a-e1d1-23a242f44a27@ardentperf.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-11-30 at 07:18 +1300, Thomas Munro wrote: > On Wed, Nov 30, 2022 at 7:03 AM Jeremy Schneider > wrote: > > It seems to me that the collator_version field is not a good > > version > > identifier to use. > >=20 > > Just taking a quick glance at the ICU home page right now, it shows > > that > > all of the last 5 versions of ICU have included "additions and > > corrections" to locale data itself, including 68 to 69 where the > > collator version did not change. > >=20 > > Is it possible that this "collator_version" only reflects the code > > that > > processes collation data to do comparisons/sorts, but it does not > > reflect updates to the locale data itself? >=20 > I think it also includes the CLDR version for *some* locales.=C2=A0 From = a > quick look, that includes 'ar', 'ru', 'tr', 'zh'.=C2=A0 Jeff, would you > mind sharing the same table for one of those?=C2=A0 Perhaps 'en' really > does depend only on the UCA? =3D# select * from pg_icu_collation_versions('ar') order by icu_version; icu_version | uca_version | collator_version =20 -------------+-------------+------------------ =20 50.2 | 6.2 | 58.0.0.50 =20 51.3 | 6.2 | 58.0.0.50 =20 52.2 | 6.2 | 58.0.0.50 =20 53.2 | 6.3 | 137.51.25 54.2 | 7.0 | 137.56.26 55.2 | 7.0 | 153.56.27.1 56.2 | 8.0 | 153.64.28 57.2 | 8.0 | 153.64.29 58.3 | 9.0 | 153.72.30.3 59.2 | 9.0 | 153.72.31.1 60.3 | 10.0 | 153.80.32.1 61.2 | 10.0 | 153.80.33 62.2 | 11.0 | 153.88.33.8 63.2 | 11.0 | 153.88.34 64.2 | 12.1 | 153.97.35.8 65.1 | 12.1 | 153.97.36 66.1 | 13.0 | 153.14.36.8 67.1 | 13.0 | 153.14.37 68.2 | 13.0 | 153.14.38.8 69.1 | 13.0 | 153.14.39 70.1 | 14.0 | 153.112.40 (21 rows) =3D# select * from pg_icu_collation_versions('zh') order by icu_version; icu_version | uca_version | collator_version=20 -------------+-------------+------------------ 50.2 | 6.2 | 58.0.0.50 51.3 | 6.2 | 58.0.0.50 52.2 | 6.2 | 58.0.0.50 53.2 | 6.3 | 137.51.25 54.2 | 7.0 | 137.56.26 55.2 | 7.0 | 153.56.27.1 56.2 | 8.0 | 153.64.28 57.2 | 8.0 | 153.64.29 58.3 | 9.0 | 153.72.30.3 59.2 | 9.0 | 153.72.31.1 60.3 | 10.0 | 153.80.32.1 61.2 | 10.0 | 153.80.33 62.2 | 11.0 | 153.88.33.8 63.2 | 11.0 | 153.88.34 64.2 | 12.1 | 153.97.35.8 65.1 | 12.1 | 153.97.36 66.1 | 13.0 | 153.14.36.8 67.1 | 13.0 | 153.14.37 68.2 | 13.0 | 153.14.38.8 69.1 | 13.0 | 153.14.39 70.1 | 14.0 | 153.112.40 (21 rows) --=20 Jeff Davis PostgreSQL Contributor Team - AWS