Slow performance of collate "en_US.utf8"

2025-03-03 Thread Alexey Borschev
Hi! Thank everyone for Your answers! It is now clear, that it is not PG issue and it will not be fixed anytime soon. I see that with pure numbers sorting en_US.utf8 is still well behind: explain (analyze, costs, buffers, verbose) select gen.id::text collate "C" from generate_series(1,

Re: Slow performance of collate "en_US.utf8"

2025-02-28 Thread Joe Conway
On 2/28/25 17:49, Thomas Munro wrote: On Sat, Mar 1, 2025 at 9:03 AM Joe Conway wrote: On 2/28/25 09:16, Laurenz Albe wrote: > On Thu, 2025-02-27 at 16:54 +0300, Alexey Borschev wrote: >> I see poor performance of text sorting of collate "en_US.utf8" in PG 17.4. > > I'd say that you would have

Re: Slow performance of collate "en_US.utf8"

2025-02-28 Thread Thomas Munro
On Sat, Mar 1, 2025 at 9:03 AM Joe Conway wrote: > On 2/28/25 09:16, Laurenz Albe wrote: > > On Thu, 2025-02-27 at 16:54 +0300, Alexey Borschev wrote: > >> I see poor performance of text sorting of collate "en_US.utf8" in PG 17.4. > > > > I'd say that you would have to complain to the authors of t

Re: Slow performance of collate "en_US.utf8"

2025-02-28 Thread Joe Conway
On 2/28/25 09:16, Laurenz Albe wrote: On Thu, 2025-02-27 at 16:54 +0300, Alexey Borschev wrote: I see poor performance of text sorting of collate "en_US.utf8" in PG 17.4. I'd say that you would have to complain to the authors of the GNU C library, which provides this collation. Yep -- glibc

Re: Slow performance of collate "en_US.utf8"

2025-02-28 Thread Laurenz Albe
On Thu, 2025-02-27 at 16:54 +0300, Alexey Borschev wrote: > I see poor performance of text sorting of collate "en_US.utf8" in PG 17.4. I'd say that you would have to complain to the authors of the GNU C library, which provides this collation. Yours, Laurenz Albe

Re: Slow performance of collate "en_US.utf8"

2025-02-28 Thread Achilleas Mantzios - cloud
Hi Alexey On 2/27/25 15:54, Alexey Borschev wrote: Hi everyone! I see poor performance of text sorting of collate "en_US.utf8" in PG 17.4. Test query: explain (analyze, costs, buffers, verbose) SELECT ('БвЁжЫйяЙSёYz&$' || gen.id) collate "en_US.utf8" FROM generate_series(1, 1) AS gen(