public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pavel Stehule <[email protected]>
To: Jeff Davis <[email protected]>
Cc: Andres Freund <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: Thomas Munro <[email protected]>
Cc: Robert Haas <[email protected]>
Cc: [email protected]
Subject: Re: Move defaults toward ICU in 16?
Date: Sat, 18 Feb 2023 05:52:54 +0100
Message-ID: <CAFj8pRAGgzyyEOBjkuNCo2tXnyzmENPF0YjtpK5vtqQ2efsviw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<CA+TgmoaymD=TA=4VB=An4LpY6FLmEnzB2NKMUBcQWOCeV-dWeA@mail.gmail.com>
<[email protected]>
<CA+hUKGLd3ESz2yZ69HB6TO2E9J0Ku_eBJ5AddPHQvW+iPZ-puA@mail.gmail.com>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<CAFj8pRBPW2bKMsCuwHqEvhubwin_gb=ynY=V45KT3C=nF1MFzA@mail.gmail.com>
<[email protected]>
pá 17. 2. 2023 v 21:43 odesílatel Jeff Davis <[email protected]> napsal:
> On Fri, 2023-02-17 at 18:27 +0100, Pavel Stehule wrote:
> > Today I tested icu for Czech sorting. It is a little bit slower, but
> > not too much, but it produces partially different results.
>
> Thank you for trying it.
>
> If it's a significant slowdown, can you please send more information?
> ICU version, libc version, and testcase?
>
no - this slowdown is not significant - although 1% can looks too much -
but it is just two ms
It looks so libicu has little bit more expensive initialization, but the
execution is little bit faster
But when I try to repeat the measurements, the results are very unstable on
my desktop :-/
SELECT * FROM obce ORDER BY nazev LIMIT 10 // is faster with glibc little
bit
SELECT * FROM obce ORDER BY nazev // is faster with libicu
You can download dataset https://pgsql.cz/files/obce.sql
It is table of municipalities in czech republic (real names) - about 6000
rows
I use fedora 37 - so libicu 71.1, glibc 2.36
Regards
Pavel
>
> > select row_number() over (order by nazev collate "cs-x-icu"), nazev
> > from obce
> > except select row_number() over (order by nazev collate "cs_CZ"),
> > nazev from obce;
> >
> > returns a not empty set. So minimally for Czech collate, an index
> > rebuild is necessary
>
> Yes, that's true of any locale change, provider change, or even
> provider version change.
>
>
> --
> Jeff Davis
> PostgreSQL Contributor Team - AWS
>
>
>
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Move defaults toward ICU in 16?
In-Reply-To: <CAFj8pRAGgzyyEOBjkuNCo2tXnyzmENPF0YjtpK5vtqQ2efsviw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox