<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Collation on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/collation/</link><description>Recent content in Collation on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Sun, 19 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/collation/index.xml" rel="self" type="application/rss+xml"/><item><title>List PostgreSQL Collations with pg_collation and ICU</title><link>https://www.postgresscripts.com/post/list-collations-in-postgresql/</link><pubDate>Sun, 19 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/list-collations-in-postgresql/</guid><description>
&lt;h2 id="list-collations-available-in-postgresql"&gt;List Collations Available in PostgreSQL&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;pg_collation&lt;/code&gt; is the system catalog that holds every collation a database can use — the sort-and-compare rules behind &lt;code&gt;ORDER BY&lt;/code&gt;, &lt;code&gt;DISTINCT&lt;/code&gt;, comparison operators and text indexes. One query against it shows each collation's name, the library that implements it, and the locale it maps to, which is the first thing to check when text sorts differently on two servers.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="7945792173"
data-ad-format="auto"
data-full-width-responsive="true"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;A collation decides how text is ordered and compared. In PostgreSQL the &lt;a href="https://www.postgresql.org/docs/current/collation.html"&gt;collation feature&lt;/a&gt; &amp;quot;allows specifying the sort order and character classification behavior of data per-column, or even per-operation,&amp;quot; so one database can hold columns that sort by different rules.&lt;/p&gt;</description></item></channel></rss>