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 1pwHF5-0001S8-GJ for pgsql-general@arkaria.postgresql.org; Tue, 09 May 2023 06:54:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pwHF4-0006ie-Dj for pgsql-general@arkaria.postgresql.org; Tue, 09 May 2023 06:54:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pwHF4-0006iV-35 for pgsql-general@lists.postgresql.org; Tue, 09 May 2023 06:54:34 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pwHF1-001WnT-Dd for pgsql-general@lists.postgresql.org; Tue, 09 May 2023 06:54:33 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4eed764a10cso6051538e87.0 for ; Mon, 08 May 2023 23:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fortnox.se; s=google; t=1683615270; x=1686207270; h=content-transfer-encoding:content-language:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=yVQKua964Zpo6ue5ELhqGj5y66jq8bFj8c+NkUi4Mig=; b=kvRkkzD7SFr9pVSwAKdrU9rhoRMa0rVoZ/cXontToraOxLzea51zMepFoSINY/Te9Q 74l/5hg7Q2XLQQUzC/h3DaPh06vSEcmBYvQyQS+UUActe7Bhyat3ekRB7RDe5Bl7MszR 9/njx1Vw17oB671hygkekZijV1XaUn+7mcnw/m4soT0b7+LaiFodQEI/kpt8RqASFWVg BZfn94Xxi3VQuj8PjSC2wrPZYwewvDMFgGJK0dtI+CZIxAuRW89myijVdNShLuu2hnU9 umsb5nELN+ODzKQoZ02fpxP+MZZzLuiXbCIZ+qYY3cfLThInf48TbSMCNzLSg04EUpr/ BS1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683615270; x=1686207270; h=content-transfer-encoding:content-language:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yVQKua964Zpo6ue5ELhqGj5y66jq8bFj8c+NkUi4Mig=; b=W3aV5GpZ2tTlFZOcYoGDtoykeDDmsZwh/XX4evLE5mbeYLk827dROxegzgcHSSflbq uLFB3WEK54a2acKyrfSci9EOpzFbRVq849BpTdYxkyiQENrgO7BQEfcTwA23KJaGpXNo AKqAVXX4lgNSNX3Y5Phx41GsgyxJsJOArChavicLPpGnHIzazBsJuCruJCNwVMyTVmqi TpeSCszkTn0VhSVU7rtMGUgwEeXXkLerewuVv34eH8rjZHUOAQzNsuAIsxy4ojncpt6E IGwURJtMhzX1gfdikJqreq/+OCMzRsyb4mBbaXt3S9P99MNSrKt/yNTXKY0FWJSaUTwA dLGQ== X-Gm-Message-State: AC+VfDzc4NHqA+Kyr4nN7WFXruhhfdX/fTBLLUdpeP+dJh0dx5sjb5p0 w6beJDxcuTxqZV2g0JTQ/a8Vnz2mu0Y0EZEI5eMz6FLbDPfTQm9WnKvIBiWLP7MdfGGA5u2GDhb 1Goah6zaUXgPtnPglA7WtPmq1RZ38XC+aObSP6c4= X-Google-Smtp-Source: ACHHUZ7LxHYVyVkDFHvTucNLIO2SJ03nZH4k4C/jGYf96BocsE+Vzk5WPu0Hm0oi8CB9dwaxG6rwLQ== X-Received: by 2002:a05:6512:902:b0:4f1:3be7:e1d with SMTP id e2-20020a056512090200b004f13be70e1dmr387611lft.62.1683615269953; Mon, 08 May 2023 23:54:29 -0700 (PDT) Received: from [0.0.0.0] (h-217-27-175-130.A147.priv.bahnhof.se. [217.27.175.130]) by smtp.googlemail.com with ESMTPSA id f4-20020a056512092400b004f14ecc03f1sm237046lft.100.2023.05.08.23.54.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 23:54:29 -0700 (PDT) Message-ID: <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se> Date: Tue, 9 May 2023 08:54:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: ICU, locale and collation question To: Laurenz Albe , pgsql-general@lists.postgresql.org References: <2a1de395-c69a-3dae-4459-dbdb633df637@fortnox.se> From: Oscar Carlberg In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/8/23 22:07, Laurenz Albe wrote: > Yes, that is safe. > > But it is not compatible with the old setup when it comes to lc_time, > lc_messages and the others. You should use sv_SE.UTF-8 for these > locale categories. > > Note that that won't cause problems with upgrading the C library. > > Yours, > Laurenz Albe > Thank you very much for clarifying! Our initdb setup would then look like this for compatibility; -E 'UTF-8' --locale-provider=3Dicu --icu-locale=3Dsv-SE-x-icu --lc_monetary=3Dsv_SE.UTF-8 --lc-numeric=3Dsv_SE.UTF-8 --lc-time=3Dsv_SE.UTF-8 --lc-messages=3Den_US.UTF-8 Should we still provide createdb with --lc-collate=3DC and --lc-ctype=3DC,= =20 or should we set those to sv_SE.UTF-8 as well? Best regards, Oscar --=20 Inneh=C3=A5llet i detta e-postmeddelande =C3=A4r konfidentiellt och avsett = endast f=C3=B6r=20 adressaten.Varje spridning, kopiering eller utnyttjande av inneh=C3=A5llet = =C3=A4r=20 f=C3=B6rbjuden utan till=C3=A5telse av avs=C3=A4ndaren.=C2=A0Om detta medde= lande av misstag=20 g=C3=A5tt till fel adressat v=C3=A4nligen radera det ursprungliga meddeland= et och=20 underr=C3=A4tta avs=C3=A4ndaren via e-post