summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-01-28 20:54:56 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-01-28 20:54:56 -0500
commit17d3233e1bfd9fbe856f032a542f2c595e79ca01 (patch)
tree201aaf4301da10cb7d2510388464724ac49e2c56 /doc/src
parent4ec6581c0cdddfda767641f535116ee9a0412149 (diff)
Update statement about sorting of character-string data.
The sort order is no longer fixed at database creation time, but can be controlled via COLLATE. Noted by Thomas Kellerer.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/select.sgml9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml
index 39fc6b6d830..01c01046249 100644
--- a/doc/src/sgml/ref/select.sgml
+++ b/doc/src/sgml/ref/select.sgml
@@ -1050,8 +1050,13 @@ SELECT name FROM distributors ORDER BY code;
</para>
<para>
- Character-string data is sorted according to the locale-specific
- collation order that was established when the database was created.
+ Character-string data is sorted according to the collation that applies
+ to the column being sorted. That can be overridden at need by including
+ a <literal>COLLATE</> clause in the
+ <replaceable class="parameter">expression</replaceable>, for example
+ <literal>ORDER BY mycolumn COLLATE "en_US"</>.
+ For more information see <xref linkend="sql-syntax-collate-exprs"> and
+ <xref linkend="collation">.
</para>
</refsect2>