Content-Length: 268529 | pFad | http://github.com/postgrespro/postgres/commit/17d3233e1bfd9fbe856f032a542f2c595e79ca01

42 Update statement about sorting of character-string data. · postgrespro/postgres@17d3233 · GitHub
Skip to content

Commit 17d3233

Browse files
committed
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.
1 parent 4ec6581 commit 17d3233

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/src/sgml/ref/select.sgml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,13 @@ SELECT name FROM distributors ORDER BY code;
10501050
</para>
10511051

10521052
<para>
1053-
Character-string data is sorted according to the locale-specific
1054-
collation order that was established when the database was created.
1053+
Character-string data is sorted according to the collation that applies
1054+
to the column being sorted. That can be overridden at need by including
1055+
a <literal>COLLATE</> clause in the
1056+
<replaceable class="parameter">expression</replaceable>, for example
1057+
<literal>ORDER BY mycolumn COLLATE "en_US"</>.
1058+
For more information see <xref linkend="sql-syntax-collate-exprs"> and
1059+
<xref linkend="collation">.
10551060
</para>
10561061
</refsect2>
10571062

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/17d3233e1bfd9fbe856f032a542f2c595e79ca01

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy