Commit 85eee28c authored by Tom Lane's avatar Tom Lane

Minor improvements to locale documentation.

parent 5f0a974e
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.71 2005/03/17 00:22:24 neilc Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.72 2005/04/16 16:50:01 tgl Exp $ -->
<chapter id="charset"> <chapter id="charset">
<title>Localization</> <title>Localization</>
...@@ -145,9 +145,9 @@ initdb --locale=sv_SE ...@@ -145,9 +145,9 @@ initdb --locale=sv_SE
linkend="runtime-config-client-format"> for details). The defaults that are linkend="runtime-config-client-format"> for details). The defaults that are
chosen by <command>initdb</command> are actually only written into chosen by <command>initdb</command> are actually only written into
the configuration file <filename>postgresql.conf</filename> to the configuration file <filename>postgresql.conf</filename> to
serve as defaults when the server is started. If you delete the serve as defaults when the server is started. If you delete these
assignments from <filename>postgresql.conf</filename> then the assignments from <filename>postgresql.conf</filename> then the
server will inherit the settings from the execution environment. server will inherit the settings from its execution environment.
</para> </para>
<para> <para>
...@@ -192,12 +192,12 @@ initdb --locale=sv_SE ...@@ -192,12 +192,12 @@ initdb --locale=sv_SE
<title>Behavior</> <title>Behavior</>
<para> <para>
Locale support influences the following features: The locale settings influence the following SQL features:
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para> <para>
Sort order in queries using <literal>ORDER BY</> Sort order in queries using <literal>ORDER BY</> on textual data
<indexterm><primary>ORDER BY</><secondary>and locales</></indexterm> <indexterm><primary>ORDER BY</><secondary>and locales</></indexterm>
</para> </para>
</listitem> </listitem>
...@@ -209,9 +209,19 @@ initdb --locale=sv_SE ...@@ -209,9 +209,19 @@ initdb --locale=sv_SE
</para> </para>
</listitem> </listitem>
<listitem>
<para>
The <function>upper</>, <function>lower</>, and <function>initcap</>
functions
<indexterm><primary>upper</><secondary>and locales</></indexterm>
<indexterm><primary>lower</><secondary>and locales</></indexterm>
</para>
</listitem>
<listitem> <listitem>
<para> <para>
The <function>to_char</> family of functions The <function>to_char</> family of functions
<indexterm><primary>to_char</><secondary>and locales</></indexterm>
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
...@@ -294,7 +304,7 @@ initdb --locale=sv_SE ...@@ -294,7 +304,7 @@ initdb --locale=sv_SE
allows you to store text in a variety of character sets, including allows you to store text in a variety of character sets, including
single-byte character sets such as the ISO 8859 series and single-byte character sets such as the ISO 8859 series and
multiple-byte character sets such as <acronym>EUC</> (Extended Unix multiple-byte character sets such as <acronym>EUC</> (Extended Unix
Code), UTF8, and Mule internal code. All character sets can be Code), UTF-8, and Mule internal code. All character sets can be
used transparently throughout the server. (If you use extension used transparently throughout the server. (If you use extension
functions from other sources, it depends on whether they wrote functions from other sources, it depends on whether they wrote
their code correctly.) The default character set is selected while their code correctly.) The default character set is selected while
...@@ -603,7 +613,8 @@ initdb -E EUC_JP ...@@ -603,7 +613,8 @@ initdb -E EUC_JP
can use <option>--encoding</option> instead of can use <option>--encoding</option> instead of
<option>-E</option> if you prefer to type longer option strings. <option>-E</option> if you prefer to type longer option strings.
If no <option>-E</> or <option>--encoding</option> option is If no <option>-E</> or <option>--encoding</option> option is
given, <literal>SQL_ASCII</> is used. given, <command>initdb</> attempts to determine the appropriate
encoding to use based on the specified or default locale.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment