Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88b74dc

Browse files
committed
Add pg_conversion system catalog. Update description for multibyte support.
1 parentb4b3c63 commit88b74dc

File tree

2 files changed

+121
-35
lines changed

2 files changed

+121
-35
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Documentation of the system catalogs, directed toward PostgreSQL developers
3-
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.46 2002/07/22 20:23:19 petere Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.47 2002/07/24 05:51:55 ishii Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -81,6 +81,11 @@
8181
<entry>check constraints, unique / primary key constraints, foreign key constraints</entry>
8282
</row>
8383

84+
<row>
85+
<entry>pg_conversion</entry>
86+
<entry>encoding conversion information</entry>
87+
</row>
88+
8489
<row>
8590
<entry>pg_database</entry>
8691
<entry>databases within this database cluster</entry>
@@ -995,6 +1000,85 @@
9951000

9961001
</sect1>
9971002

1003+
<sect1 id="catalog-pg-conversion">
1004+
<title>pg_conversion</title>
1005+
1006+
<para>
1007+
This system catalog stores encoding conversion information. See
1008+
<command>CREATE CONVERSION</command> for more information.
1009+
</para>
1010+
1011+
<table>
1012+
<title>pg_conversion Columns</title>
1013+
1014+
<tgroup cols=4>
1015+
<thead>
1016+
<row>
1017+
<entry>Name</entry>
1018+
<entry>Type</entry>
1019+
<entry>References</entry>
1020+
<entry>Description</entry>
1021+
</row>
1022+
</thead>
1023+
1024+
<tbody>
1025+
<row>
1026+
<entry>conname</entry>
1027+
<entry><type>name</type></entry>
1028+
<entry></entry>
1029+
<entry>Conversion name (unique within a namespace)</entry>
1030+
</row>
1031+
1032+
<row>
1033+
<entry>connamespace</entry>
1034+
<entry><type>oid</type></entry>
1035+
<entry>pg_namespace.oid</entry>
1036+
<entry>
1037+
The OID of the namespace that contains this conversion
1038+
</entry>
1039+
</row>
1040+
1041+
<row>
1042+
<entry>conowner</entry>
1043+
<entry><type>int4</type></entry>
1044+
<entry>pg_shadow.usesysid</entry>
1045+
<entry>Owner (creator) of the namespace</entry>
1046+
</row>
1047+
1048+
<row>
1049+
<entry>conforencoding</entry>
1050+
<entry><type>int4</type></entry>
1051+
<entry></entry>
1052+
<entry>Source(for) encoding ID</entry>
1053+
</row>
1054+
1055+
<row>
1056+
<entry>contoencoding</entry>
1057+
<entry><type>int4</type></entry>
1058+
<entry></entry>
1059+
<entry>Destination(to) encoding ID</entry>
1060+
</row>
1061+
1062+
<row>
1063+
<entry>conproc</entry>
1064+
<entry><type>regproc</type></entry>
1065+
<entry>pg_proc.oid</entry>
1066+
<entry>Conversion procedure</entry>
1067+
</row>
1068+
1069+
<row>
1070+
<entry>condefault</entry>
1071+
<entry><type>boolean</type></entry>
1072+
<entry></entry>
1073+
<entry>true if this is the default conversion</entry>
1074+
</row>
1075+
1076+
</tbody>
1077+
</tgroup>
1078+
</table>
1079+
1080+
</sect1>
1081+
9981082
<sect1 id="catalog-pg-database">
9991083
<title>pg_database</title>
10001084

‎doc/src/sgml/charset.sgml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.24 2002/04/03 05:39:27 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.25 2002/07/24 05:51:56 ishii Exp $ -->
22

33
<chapter id="charset">
44
<title>Localization</>
@@ -326,7 +326,7 @@ perl: warning: Falling back to the standard locale ("C").
326326

327327
<para>
328328
Tatsuo Ishii (<email>ishii@postgresql.org</email>),
329-
last updated2000-03-22.
329+
last updated2002-07-24.
330330
Check <ulink
331331
url="http://www.sra.co.jp/people/t-ishii/PostgreSQL/">Tatsuo's
332332
web site</ulink> for more information.
@@ -346,21 +346,19 @@ perl: warning: Falling back to the standard locale ("C").
346346
overridden when you create a database using
347347
<application>createdb</application> or by using the SQL command
348348
<command>CREATE DATABASE</>. So you can have multiple databases each with
349-
a different encoding system.
349+
a different encoding system. Note that <acronym>MB</acronym> can
350+
handle single byte characters sets such as ISO-8859-1.
350351
</para>
351352

352-
<sect2>
353-
<title>Enabling Multibyte Support</title>
354-
355353
<para>
356-
Run configure with the multibyte option:
354+
Multibyte support is enabled by default since PostgreSQL version 7.3.
355+
</para>
357356

358-
<synopsis>
359-
./configure --enable-multibyte<optional>=<replaceable>encoding_system</replaceable></optional>
360-
</synopsis>
357+
<sect2>
358+
<title>Supported character set encodings</title>
361359

362-
where <replaceable>encoding_system</replaceable> can be one of the
363-
values in the following table:
360+
<para>
361+
Following encoding can be used as database encoding.
364362

365363
<table tocentry="1">
366364
<title>Character Set Encodings</title>
@@ -508,23 +506,8 @@ perl: warning: Falling back to the standard locale ("C").
508506
<literal>LATIN8</>, and <literal>LATIN10</>.
509507
</para>
510508
</important>
509+
</sect2>
511510

512-
<para>
513-
Here is an example of configuring
514-
<productname>PostgreSQL</productname> to use a Japanese encoding by
515-
default:
516-
517-
<screen>
518-
$ <userinput>./configure --enable-multibyte=EUC_JP</userinput>
519-
</screen>
520-
</para>
521-
522-
<para>
523-
If the encoding system is omitted (<literal>./configure --enable-multibyte</literal>),
524-
<literal>SQL_ASCII</> is assumed.
525-
</para>
526-
</sect2>
527-
528511
<sect2>
529512
<title>Setting the Encoding</title>
530513

@@ -539,8 +522,8 @@ $ <userinput>initdb -E EUC_JP</>
539522
sets the default encoding to <literal>EUC_JP</literal> (Extended Unix Code for Japanese).
540523
Note that you can use <option>--encoding</option> instead of <option>-E</option> if you prefer
541524
to type longer option strings.
542-
If no <option>-E</> or <option>--encoding</option> option is given, the encoding
543-
specified at configure time is used.
525+
If no <option>-E</> or <option>--encoding</option> option is
526+
given, SQL_ASCII is used.
544527
</para>
545528

546529
<para>
@@ -583,14 +566,17 @@ $ <userinput>psql -l</userinput>
583566
</sect2>
584567

585568
<sect2>
586-
<title>Automatic encodingtranslation between server and
569+
<title>Automatic encodingconversion between server and
587570
client</title>
588571

589572
<para>
590573
<productname>PostgreSQL</productname> supports an automatic
591-
encoding translation between server
592-
and client for some encodings. The available combinations are
593-
listed in <xref linkend="multibyte-translation-table">.
574+
encoding conversion between server and client for some
575+
encodings. The conversion info is stored in pg_converson system
576+
catalog. You can create a new conversion by using <command>CREATE
577+
CONVERSION</command>. PostgreSQL comes with some predefined
578+
conversions. They are listed in <xref
579+
linkend="multibyte-translation-table">.
594580
</para>
595581

596582
<table tocentry="1" id="multibyte-translation-table">
@@ -887,6 +873,18 @@ RESET CLIENT_ENCODING;
887873
be overridden using any of the other methods mentioned above.)
888874
</para>
889875
</listitem>
876+
877+
<listitem>
878+
<para>
879+
Using client_encoding variable.
880+
881+
If client_encoding variable in postgresql.conf is set, that
882+
client encoding is automatically selected when a connection to the
883+
server is made. (This can subsequently be overridden using any of the
884+
other methods mentioned above.)
885+
</para>
886+
</listitem>
887+
890888
</itemizedlist>
891889
</para>
892890
</sect2>
@@ -909,6 +907,10 @@ RESET CLIENT_ENCODING;
909907
The Unicode conversion functionality is automatically enabled
910908
if <option>--enable-multibyte</option> is specified.
911909
</para>
910+
<para>
911+
For 7.3, <option>--enable-unicode-conversion</option> nor
912+
<option>--enable-multibyte</option> is needed.
913+
</para>
912914
</sect2>
913915

914916
<sect2>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp