Re: Inconsistent results with libc sorting on Windows

From: Joe Conway <mail(at)joeconway(dot)com>
To: Daniel Verite <daniel(at)manitou-mail(dot)org>, pgsql-hackers(at)postgresql(dot)org, Jeff Davis <pgsql(at)j-davis(dot)com>
Subject: Re: Inconsistent results with libc sorting on Windows
Date: 2023-06-05 22:32:42
Message-ID: 9bbd72c1-ee76-bd48-81be-8cf67dc90625@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/5/23 18:07, Daniel Verite wrote:
> While trying pg16beta1 libc collations on Windows, I noticed that UTF-8
> text sorts sometimes differently across invocations with the same
> locales, which is wrong since these collations are deterministic.

<snip>

> Also, it does not occur at all if parallel scan is disabled.

This is a wild shot in the dark, but I wonder if somehow the locale is
being initialized (i.e. setlocale) differently in the parallel workers
than the backend due to some Windows specific behavior differences?

--
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2023-06-05 23:26:15 Re: Let's make PostgreSQL multi-threaded
Previous Message Tejasvi Kashi 2023-06-05 22:18:01 Tracking commit LSNs of tuple xmins for read txns