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 1mzXkc-00064N-OZ for pgsql-general@arkaria.postgresql.org; Tue, 21 Dec 2021 05:31:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzXkb-0003eE-JX for pgsql-general@arkaria.postgresql.org; Tue, 21 Dec 2021 05:31:49 +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 1mzXkb-0003e5-7Z for pgsql-general@lists.postgresql.org; Tue, 21 Dec 2021 05:31:49 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mzXkR-00030O-9q for pgsql-general@lists.postgresql.org; Tue, 21 Dec 2021 05:31:48 +0000 Received: by mail-pf1-x42d.google.com with SMTP id c2so10661691pfc.1 for ; Mon, 20 Dec 2021 21:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to; bh=zAHWgOf3lw8cZCLdkTVKOl6dsT8oZN45DwmnMpWlDiA=; b=KsSsYondzfEbvleVcnNciQNBIMVuTCvf1EdN+YI0G88JvXmoxCUd819Vs+o//hEA4Z l/Rn9NjPqH8JnFiinS6fH1I9UL5wXwuMzZ1DQ31+uVXyWKK2RZR3W/FCNaZJmAGMW7FJ 7aInQDyF9C8qSqKXoFJn8JYHLMXMiVIya+QnyHgtLZ/NoHU/PmUFCBKjW+5bzYlBl4EZ PK9cK3kPdLOSADR8Viq5xrE1vht8qN4IdZ3OXMrVQ6qkpN7k8XeXh3PTVP/3lYoUOMKs TF24ymEuHlk8rbemhsuKyHhdLhmzDKUjoxnvXBLwqQVrDKt59gBQwlB9latug0QTliQK QqdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to; bh=zAHWgOf3lw8cZCLdkTVKOl6dsT8oZN45DwmnMpWlDiA=; b=Y513QiJe3EhGAO16jzU/82UGg9lTAIXXUPLjSimQxRF8uP6EEFDq0joUWqmpdxcJqn FVbRCW7dl1P79gkQdV+VETrCO27uDIBHslLl+rZ9Qmk3/BcrU16VywdJpL5yzcPwi0pg x9ryh0FboARCPHC4Xw/IA/JgDtYFZYHaXhFoCSqPhRmTHDFuJw8rc2Rb1NR1+HGMQsIR hel3yhwPHeO/z64jFmSfuNaksCy2lVjSW0kAHB5gZ3mWt29+AVv1+B/FMxtH8pP/aDJO hUF6JNgye7CwhfDgAj+PTa+itUZop8F+iDs1qseLDk+5FgWDigRWcdgkc82DXVMojKxP XYgA== X-Gm-Message-State: AOAM531c9k2nmJKJHZHJUVihAQT/+7qH7lnbnj+i4auSQp+CNtk+5H5E OUCUuZhEVhAkN6se31U+Oz8= X-Google-Smtp-Source: ABdhPJyeU0JZza8/9MzxxV8uWiznftt4VG60yvKexDRzYeBBEsk8lELaboGftdB//Ii7Ry2oca0dBg== X-Received: by 2002:a63:cf04:: with SMTP id j4mr1487196pgg.278.1640064696910; Mon, 20 Dec 2021 21:31:36 -0800 (PST) Received: from ?IPV6:2405:6e00:1ee3:3d00:3802:578c:c659:fd06? ([2405:6e00:1ee3:3d00:3802:578c:c659:fd06]) by smtp.gmail.com with ESMTPSA id z18sm1679105pfe.146.2021.12.20.21.31.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Dec 2021 21:31:36 -0800 (PST) Content-Type: multipart/alternative; boundary="------------1uxjZ0CLnqtQYlsYy3ZihlbD" Message-ID: Date: Tue, 21 Dec 2021 15:31:33 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: Sorting difference in version 10 vs 13 Content-Language: en-US To: Tom Lane Cc: pgsql-general@lists.postgresql.org References: <2705832.1640063563@sss.pgh.pa.us> From: Akheel Ahmed In-Reply-To: <2705832.1640063563@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------1uxjZ0CLnqtQYlsYy3ZihlbD Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Both are Amazon AWS Aurora instances. 10.x is on intel/amd64. 13.x is on their ARM based graviton. select version();                                                    version -------------------------------------------------------------------------------------------------------------  PostgreSQL 13.4 on aarch64-unknown-linux-gnu, compiled by aarch64-unknown-linux-gnu-gcc (GCC) 7.4.0, 64-bit (1 row) select version();                                              version --------------------------------------------------------------------------------------------------  PostgreSQL 10.18 on x86_64-pc-linux-gnu, compiled by x86_64-pc-linux-gnu-gcc (GCC) 7.4.0, 64-bit (1 row) On 21/12/2021 3:12 pm, Tom Lane wrote: > Akheel Ahmed writes: >> in 13.4, order by asc gives underscores higher than other characters. >> all the LC parameters are identical across both instances. >> Am I missing anything else? > OS-level differences, perhaps? > > https://wiki.postgresql.org/wiki/Locale_data_changes > > regards, tom lane --------------1uxjZ0CLnqtQYlsYy3ZihlbD Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Both are Amazon AWS Aurora instances. 10.x is on intel/amd64. 13.x is on their ARM based graviton.


select version();
                                                   version
-------------------------------------------------------------------------------------------------------------
 PostgreSQL 13.4 on aarch64-unknown-linux-gnu, compiled by aarch64-unknown-linux-gnu-gcc (GCC) 7.4.0, 64-bit
(1 row)


select version();
                                             version
--------------------------------------------------------------------------------------------------
 PostgreSQL 10.18 on x86_64-pc-linux-gnu, compiled by x86_64-pc-linux-gnu-gcc (GCC) 7.4.0, 64-bit
(1 row)



On 21/12/2021 3:12 pm, Tom Lane wrote:
Akheel Ahmed <akheel.mailing.list@gmail.com> writes:
in 13.4, order by asc gives underscores higher than other characters. 
all the LC parameters are identical across both instances.
Am I missing anything else?
OS-level differences, perhaps?

https://wiki.postgresql.org/wiki/Locale_data_changes

			regards, tom lane
--------------1uxjZ0CLnqtQYlsYy3ZihlbD--