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 1p076Q-000099-K9 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 20:21:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p076P-0001Rj-FR for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 20:21:13 +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 1p076P-0001Ra-1b for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 20:21:13 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p076M-0007DT-Q6 for pgsql-hackers@postgresql.org; Tue, 29 Nov 2022 20:21:12 +0000 Received: by mail-pl1-x62a.google.com with SMTP id w23so14538075ply.12 for ; Tue, 29 Nov 2022 12:21:10 -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=3K7q2uxDhU3thVhPEocHmc4eHSaZBvwtGfKqddRovS0=; b=x28g08BmhdBYw++O4UhJ7KIDhFEDOAoe5IDnzuCH0pcAg9tGDy09TCVgWSLLtHJ7W7 rMkbcRzrwOYGl/0R5iUzqRBlzg930YnAsJSy+bxJTBJf17CjBJ2WbortHwKDnC/So+nz KxUFv2kMPVBGfLDIuR6TRPUZonfQc7ugp58Xfyv973BDBrWTSj9cYaHr+e0ER/Rd6KvH r7nuyz/6YnkF5yYQhYipeVa7RZAyalQPhtTfgU4BM1q1tNMNYG7crZLjcTivpAK9sGTS iVJKIPbOZqzp80VorJTMoosmm0+N3VF8CIV5x+maxXfxWe/yUps0XU6bTjAml9ulRvB3 HjEg== 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=3K7q2uxDhU3thVhPEocHmc4eHSaZBvwtGfKqddRovS0=; b=4TK0Z2/DZU/rKqnek3IQiy4J/zccBVZNxS0COsL0lgP48jgYFHzUKm2XGXnM8B2lqY NlDz9hcW027q9dJ32VqUpdVzmZ3+m37exr6WKARi4peL+oMfw9NNcAjxl/AvRq3EZNvX Q1bisTBQcdt3QGOelwe8svYFxvXJxTrT0M4DVsE3ZGUp3wQFo/TyLY6Gn8L1kwIGR0Wm QAZ58FNOnTklaNR7x05FguBk/pc94giAg1LJQpVMMRI3rzvh1qzMPqMJRdu7H5gO/rw/ q+DSAPt2esx4H51TdxlUtPjPD/3t0rDicZQmeSNm+zopavCSVMtrMlJGKyWSKPQTL/R6 R61g== X-Gm-Message-State: ANoB5pkl/JpqsC32HqhfXz5hXImIt3H/IjMKfoAuCMLHRgMHNLIKTr5Z S6BJq9DH1jB9SXoshnfE+46qDQ== X-Google-Smtp-Source: AA0mqf6BtiWjYPlqCF8EaukZTyGMdZ7TOFtDmmNj0ehHv8oEfuh6S9Mc3Q4u0CdTC1Pyi8BXD6S6aQ== X-Received: by 2002:a17:90a:ae09:b0:218:ede8:694a with SMTP id t9-20020a17090aae0900b00218ede8694amr32838981pjq.67.1669753269639; Tue, 29 Nov 2022 12:21:09 -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 md22-20020a17090b23d600b00218fa115f83sm1741116pjb.57.2022.11.29.12.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 12:21:09 -0800 (PST) Message-ID: Subject: Re: Collation version tracking for macOS From: Jeff Davis To: Joe Conway , Robert Haas , Thomas Munro Cc: Peter Eisentraut , Jeremy Schneider , Peter Geoghegan , "Finnerty, Jim" , "Nasby, Jim" , Tom Lane , pgsql-hackers Date: Tue, 29 Nov 2022 12:21:07 -0800 In-Reply-To: <862ddcbc-ba23-0312-afee-973b00a257e8@joeconway.com> References: <398aabd1-ad95-ba2d-d70a-dd5d90bf6e07@enterprisedb.com> <606bd2baa6d65b38fee6eb23bba40c5da210255b.camel@j-davis.com> <9f8e9b5a3352478d4cf7d6c0a5dd7e82496be4b6.camel@j-davis.com> <5ca35de8-48a6-6d9f-6f92-82d9da9ce227@joeconway.com> <9d70e95d78a05a9ba130db92a5b8a4f9c897f8b6.camel@j-davis.com> <862ddcbc-ba23-0312-afee-973b00a257e8@joeconway.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 Tue, 2022-11-29 at 14:34 -0500, Joe Conway wrote: > I understand that it is not easily done, but if the combination of=20 > collprovider + collversion does not represent specific immutable=20 > ordering behavior for a given locale Given the u_versionToString() bug, we know the version string could end up being the same between two different collation versions (e.g. 153.104 and 153.14). So that really undermines the credibility of ICU's collation versions (at least the strings, which is what we store in collversion). But if we ignore that bug, do we have evidence that the actual versions could be the same for collations that sort differently? It's worth exploring, to be sure, but right now I don't know of a case. > , what value is there in tracking [collation version]? Similarly, what is the value in tracking the library minor versions, if when you open libicui18n.63.1, you may end up with a mix of code between 63.1 and 63.2? That doesn't mean it's impossible. We could attach collations to a library major version, and tell administrators that once they install a major version in icu_library_path, they never touch that major version again (no updates or new minors, only new majors). #6 might be a good approach to facilitate this best practice. We'd then probably need to change collversion to be a library major version, and then come up with a migration path from 15 -> 16. Or we could store both library major version and collversion, and verify both. --=20 Jeff Davis PostgreSQL Contributor Team - AWS