Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkruN-00G238-RQ for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 20:42:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rkruM-0038o2-AH for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 20:42:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkruL-0038nu-T0 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 20:42:34 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rkruJ-004XQF-TD for pgsql-hackers@postgresql.org; Thu, 14 Mar 2024 20:42:33 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1ddcec424a6so12811365ad.2 for ; Thu, 14 Mar 2024 13:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1710448950; x=1711053750; darn=postgresql.org; 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=JTjtcZtRfRP2fZ4wnUlY3rRe+WVtwz/vwp+z9zgNVHg=; b=wPCrr5WXYq9EZ2bsZX8zVT1u8vhdXLKDuzZtlO2djTmEt01ttwJOhR9Za/0Mn1Ayu/ E3eKT93w84iGAJKjl+PFnAjvxeZvd0HArMsi27Ebx/r57Y1kQz5vsCczdeD241HIntQ4 duqVu034jRAKrjYd9eoMUNuiD4k2Fq6RLGjL6cVUYDROoyvhzUnElVE6JB1o+jLyz1y9 SMARbtU4T8iYode/5pVq9WPF3C+z63V4MphdwtrmPXhUaRl326JZjeTdg/Etji9YqLQu 4I/6JOZHwA3GAqiSIaHtnNurnLJNDo9O2rkg/L79IsyVtFQoza7TiwAbElF7D/O3w1ZW c4wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710448950; x=1711053750; 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=JTjtcZtRfRP2fZ4wnUlY3rRe+WVtwz/vwp+z9zgNVHg=; b=mTqIT+hkrxnvev3SYMegFmvRqHzgGSN/D7yypCxxrczmRMI3MV4938t6hJs6xR778I QjNOesd89Pl0ptFHjjzdn9mTOfQrJ+QHdN4cugPJ7pwecStT25rJRDtEIvgMEPzpgq5s c1OlQfrriJlrBucWIIyo4vPIJb9yC0gsynVrC4D4nV5cxEPiKbM/WXQve4dhPTyBQd4n 5mUCA2BX77njSllJbqH7+ffuRvKz0/3TsFLsg1mrdvuNIjy8N9q8QehsnYBVQcgnVFFe CUkoYwdkTsYrpHyisqPzAfYnwm/pYkofbmKni7Ey8/3ak3vWJOXER+Dt3DcVc6tHd6nv Ybcw== X-Forwarded-Encrypted: i=1; AJvYcCUd/2M/jtLKW1lAskJXy2cqylXzxdiYr0g8gJ9Bj6w7liTISLJylJ/SCxYrIHXslk/xt3euzIqQJGWh7ZNrV5h+NJjQF/l9cAJ4cqve X-Gm-Message-State: AOJu0YwUeUJCmEZyM6Oa250UijikQajjfrG0yYGVAXeAGfBpG+s4CCoh QKl8XC88OPs5hEcQg4tVd9Fm5gRnsmmAPYIu3Qmm9SnpViJ9ZGfA8goXpNvq/w== X-Google-Smtp-Source: AGHT+IHEFnAgCd09IEveSk4M5VT1gQZHyySNy9/v90E2JheWOZ8TjQSxMFXPcnuqJd663B4fQTQYHA== X-Received: by 2002:a17:903:120b:b0:1dd:aa58:a648 with SMTP id l11-20020a170903120b00b001ddaa58a648mr1224158plh.43.1710448950099; Thu, 14 Mar 2024 13:42:30 -0700 (PDT) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id u2-20020a170902b28200b001d9edac54b1sm2183011plr.171.2024.03.14.13.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 13:42:29 -0700 (PDT) Message-ID: <5a1ecc40539f36cac5b27a62739a45a49785ca54.camel@j-davis.com> Subject: Re: Built-in CTYPE provider From: Jeff Davis To: Peter Eisentraut , Daniel Verite Cc: Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org Date: Thu, 14 Mar 2024 13:42:28 -0700 In-Reply-To: <613c120a-5413-4fa7-a501-6590eae558f8@eisentraut.org> References: <6f3e94c0-f174-4380-9b69-072f8a838881@manitou-mail.org> <12e4f6a78403b33c303c20e44976f891d879be09.camel@j-davis.com> <612987b5-38fa-44c6-8b78-c0be5a177a70@eisentraut.org> <2692039df6b0cac20c5e488fa0209e8958c5fedb.camel@j-davis.com> <27bb0e52-801d-4f73-a0a4-02cfdd4a9ada@eisentraut.org> <4a69d067374d2f6bfb66f5bfb2ab9a020493d49f.camel@j-davis.com> <3bc653b5d562ae9e2838b11cb696816c328a489a.camel@j-davis.com> <163f4e2190cdf67f67016044e503c5004547e5a9.camel@j-davis.com> <6bdb98e68b2b05aa71f7f934e227738eac84ecee.camel@j-davis.com> <19b34a70-f5cf-4faf-88dc-917db44ed48d@eisentraut.org> <846a7e1fa2024918b58ff7583523a2f3de9a11b4.camel@j-davis.com> <3117d30aa911b408b90420f4f280fa0c3b5851be.camel@j-davis.com> <613c120a-5413-4fa7-a501-6590eae558f8@eisentraut.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2024-03-14 at 15:38 +0100, Peter Eisentraut wrote: > On 14.03.24 09:08, Jeff Davis wrote: > > 0001 (the C.UTF-8 locale) is also close... >=20 > If have tested this against the libc locale C.utf8 that was available > on=20 > the OS, and the behavior is consistent. That was the goal, in spirit. But to clarify: it's not guaranteed that the built-in C.UTF-8 is always the same as the libc UTF-8, because different implementations do different things. For instance, I saw significant differences on MacOS. > I wonder if we should version the builtin locales too.=C2=A0 We might mak= e > a=20 > mistake and want to change something sometime? I'm fine with that, see v25-0004 in the reply to your other mail. The version only tracks sort order, and all of the builtin locales sort based on memcmp(). But it's possible there are bugs in the optimizations around memcmp() (e.g. abbreviated keys, or some future optimization). > Tiny comments: >=20 > * src/bin/scripts/t/020_createdb.pl >=20 > The two added tests should have different names that tells them apart > (like the new initdb tests). >=20 > * src/include/catalog/pg_collation.dat Done in v25-0002 (in reply to your other mail). Regards, Jeff Davis