Here I'm following up my previous post Using linguistic indexes for sorting in
Oracle. I don't much like the Oracle solution, that requires
creating a special index to speed up sorting, but... at the same
time its very powerful, allows to index in many languages and no
database changes are needed.
In this post I’ll take a look at the two popular open source
databases MySQL and PostgreSQL. I'll take a look only at
features, that the database has included and that can be used
without any special application changes.
PostgreSQL 8.4
Starting from 8.4, collation (sorting) rules can be defined per database and there is no possibility to set it in session level. All sorting and all indexes are ordered according to the database collation locale. In previous versions there was only one …
[Read more]