<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Robert Haas: glibc</title><description>Sr. Staff Software Engineer @ Databricks, PostgreSQL Developer and Committer</description><link>https://rhaas.dev/</link><item><title>Collation Stability</title><link>https://rhaas.dev/blog/2021/11/collation-stability/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-4708983188727365621</guid><description>&lt;p&gt;When PostgreSQL needs to sort strings, it relies on either the operating system (by default) or the ICU collation library (if your PostgreSQL has been built with support for ICU and you have chosen to use an ICU-based collation) to tell it in what order the strings ought to be sorted. Unfortunately, operating system behaviors are confusing and inconsistent, and they change relatively frequently for reasons that most people can’t understand. That’s a problem for PostgreSQL users, especially PostgreSQL users who create indexes on text columns. The first step in building a btree index to sort the data, and if this sort order differs from the one used for later index lookups, data that is actually present in the index may not be found, and your queries may return wrong answers.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2021/11/collation-stability/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 29 Nov 2021 20:39:00 GMT</pubDate><category>glibc</category><category>postgresql</category></item><item><title>The Perils of Collation-Aware Comparisons</title><link>https://rhaas.dev/blog/2012/03/perils-of-collation-aware-comparisons/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-4681858850093126599</guid><description>&lt;p&gt;If you use psql’s \l command to list all the databases in your PostgreSQL cluster, you’ll notice a column in the output labelled “Collate”; on my system, that column has the value “en_US.UTF-8”. This means that when, for example, you sort strings, you’ll use the “English” sort order rather than the traditional “C” sort order. You might ask: what’s the difference?&lt;/p&gt;
&lt;p&gt;In the “C” sort order, all capital letters come before all lower-case letters, whereas in en_US.UTF8, a comes before A which comes before b which comes before B, and so on. In other words, every collation can have its own rules for sorting strings, consistent with the way that the people who speak that language like to alphabetize things; or at least with the way that the people who wrote the locale definitions for that language think that they like to alphabetize things. Collations are OS-dependent: some operating systems don’t support them at all, while Windows has a completely different naming convention from every other operating system, and probably different behaviors as well.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2012/03/perils-of-collation-aware-comparisons/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 05 Mar 2012 14:58:00 GMT</pubDate><category>glibc</category><category>postgresql</category></item><item><title>Linux and glibc Scalability</title><link>https://rhaas.dev/blog/2011/08/linux-and-glibc-scalability/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5025841095602433529</guid><description>&lt;p&gt;As some of you probably already know from following the traffic on pgsql-hackers, I’ve been continuing to beat away at the scalability issues around PostgreSQL. Interestingly, the last two problems I found turned out, somewhat unexpectedly, not to be internal bottlenecks in PostgreSQL. Instead, they were bottlenecks with other software with which PostgreSQL was interacting during the test runs.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2011/08/linux-and-glibc-scalability/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 04 Aug 2011 19:39:00 GMT</pubDate><category>glibc</category><category>linux</category><category>postgresql</category></item></channel></rss>