diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-01-28 20:54:56 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-01-28 20:55:07 -0500 |
commit | b3bd5a093f3758cf168dae88478f9fc5b37ff6b1 (patch) | |
tree | bc14421f59a9a41fd51ddaf1d3d6ad1e2a46cc8c | |
parent | 1a096957d747a3bc93abe65722c919c8a40a1049 (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.
-rw-r--r-- | doc/src/sgml/ref/select.sgml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index 9f53f778045..070c76934f1 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -1049,8 +1049,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> |