1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.91 2009/02/10 19:29:39 petere Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.92 2009/03/26 20:55:49 tgl Exp $ -->
2
2
3
3
<chapter id="charset">
4
4
<title>Localization</>
33
33
34
34
<sect1 id="locale">
35
35
<title>Locale Support</title>
36
-
36
+
37
37
<indexterm zone="locale"><primary>locale</></>
38
38
39
39
<para>
@@ -65,7 +65,7 @@ initdb --locale=sv_SE
65
65
</para>
66
66
67
67
<para>
68
- This example for Unix systems sets the locale to Swedish
68
+ This example for Unix systems sets the locale to Swedish
69
69
(<literal>sv</>) as spoken
70
70
in Sweden (<literal>SE</>). Other possibilities might be
71
71
<literal>en_US</> (U.S. English) and <literal>fr_CA</> (French
@@ -136,18 +136,18 @@ initdb --locale=sv_SE
136
136
and <literal>LC_CTYPE</literal> are those categories. They affect
137
137
the sort order of indexes, so they must be kept fixed, or indexes on
138
138
text columns will become corrupt. The default values for these
139
- categories aredefined when <command>initdb</command> is run, and
139
+ categories aredetermined when <command>initdb</command> is run, and
140
140
those values are used when new databases are created, unless
141
141
specified otherwise in the <command>CREATE DATABASE</command> command.
142
142
</para>
143
143
144
144
<para>
145
- The other locale categories can be changedas desired wheneverthe
146
- server is running by setting therun-time configurationvariables
145
+ The other locale categories can be changed wheneverdesired
146
+ by setting theserver configurationparameters
147
147
that have the same name as the locale categories (see <xref
148
- linkend="runtime-config-client-format"> for details). Thedefaults
149
- that are chosen by <command>initdb</command> are actually only written into
150
- the configuration file <filename>postgresql.conf</filename> to
148
+ linkend="runtime-config-client-format"> for details). Thevalues
149
+ that are chosen by <command>initdb</command> are actually only written
150
+ into the configuration file <filename>postgresql.conf</filename> to
151
151
serve as defaults when the server is started. If you delete these
152
152
assignments from <filename>postgresql.conf</filename> then the
153
153
server will inherit the settings from its execution environment.
@@ -200,7 +200,8 @@ initdb --locale=sv_SE
200
200
<itemizedlist>
201
201
<listitem>
202
202
<para>
203
- Sort order in queries using <literal>ORDER BY</> on textual data
203
+ Sort order in queries using <literal>ORDER BY</> or the standard
204
+ comparison operators on textual data
204
205
<indexterm><primary>ORDER BY</><secondary>and locales</></indexterm>
205
206
</para>
206
207
</listitem>
@@ -261,9 +262,9 @@ initdb --locale=sv_SE
261
262
262
263
<para>
263
264
Check that <productname>PostgreSQL</> is actually using the locale
264
- that you think it is. Thedefault <envar>LC_COLLATE</> and <envar>LC_CTYPE</>
265
- settings are determinedat <command>initdb</> time and cannot be
266
- changedwithout repeating <command>initdb</> . Other locale
265
+ that you think it is. The <envar>LC_COLLATE</> and <envar>LC_CTYPE</>
266
+ settings are determinedwhen a database is created, and cannot be
267
+ changedexcept by creating a new database . Other locale
267
268
settings including <envar>LC_MESSAGES</> and <envar>LC_MONETARY</>
268
269
are initially determined by the environment the server is started
269
270
in, but can be changed on-the-fly. You can check the active locale
@@ -714,7 +715,7 @@ initdb --locale=sv_SE
714
715
converting or validating non-ASCII characters.
715
716
</para>
716
717
</sect2>
717
-
718
+
718
719
<sect2>
719
720
<title>Setting the Character Set</title>
720
721
@@ -907,66 +908,66 @@ $ <userinput>psql -l</userinput>
907
908
<literal>WIN1251</literal>
908
909
</entry>
909
910
</row>
910
- <row>
911
+ <row>
911
912
<entry><literal>LATIN1</literal></entry>
912
913
<entry><emphasis>LATIN1</emphasis>,
913
914
<literal>MULE_INTERNAL</literal>,
914
915
<literal>UTF8</literal>
915
916
</entry>
916
917
</row>
917
- <row>
918
+ <row>
918
919
<entry><literal>LATIN2</literal></entry>
919
920
<entry><emphasis>LATIN2</emphasis>,
920
921
<literal>MULE_INTERNAL</literal>,
921
922
<literal>UTF8</literal>,
922
923
<literal>WIN1250</literal>
923
924
</entry>
924
925
</row>
925
- <row>
926
+ <row>
926
927
<entry><literal>LATIN3</literal></entry>
927
928
<entry><emphasis>LATIN3</emphasis>,
928
929
<literal>MULE_INTERNAL</literal>,
929
930
<literal>UTF8</literal>
930
931
</entry>
931
932
</row>
932
- <row>
933
+ <row>
933
934
<entry><literal>LATIN4</literal></entry>
934
935
<entry><emphasis>LATIN4</emphasis>,
935
936
<literal>MULE_INTERNAL</literal>,
936
937
<literal>UTF8</literal>
937
938
</entry>
938
939
</row>
939
- <row>
940
+ <row>
940
941
<entry><literal>LATIN5</literal></entry>
941
942
<entry><emphasis>LATIN5</emphasis>,
942
943
<literal>UTF8</literal>
943
944
</entry>
944
945
</row>
945
- <row>
946
+ <row>
946
947
<entry><literal>LATIN6</literal></entry>
947
948
<entry><emphasis>LATIN6</emphasis>,
948
949
<literal>UTF8</literal>
949
950
</entry>
950
951
</row>
951
- <row>
952
+ <row>
952
953
<entry><literal>LATIN7</literal></entry>
953
954
<entry><emphasis>LATIN7</emphasis>,
954
955
<literal>UTF8</literal>
955
956
</entry>
956
957
</row>
957
- <row>
958
+ <row>
958
959
<entry><literal>LATIN8</literal></entry>
959
960
<entry><emphasis>LATIN8</emphasis>,
960
961
<literal>UTF8</literal>
961
962
</entry>
962
963
</row>
963
- <row>
964
+ <row>
964
965
<entry><literal>LATIN9</literal></entry>
965
966
<entry><emphasis>LATIN9</emphasis>,
966
967
<literal>UTF8</literal>
967
968
</entry>
968
969
</row>
969
- <row>
970
+ <row>
970
971
<entry><literal>LATIN10</literal></entry>
971
972
<entry><emphasis>LATIN10</emphasis>,
972
973
<literal>UTF8</literal>
@@ -989,7 +990,7 @@ $ <userinput>psql -l</userinput>
989
990
<literal>WIN1251</literal>
990
991
</entry>
991
992
</row>
992
- <row>
993
+ <row>
993
994
<entry><literal>SJIS</literal></entry>
994
995
<entry><emphasis>not supported as a server encoding</emphasis>
995
996
</entry>