Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
88b74dcd
Commit
88b74dcd
authored
23 years ago
by
Tatsuo Ishii
Browse files
Options
Downloads
Patches
Plain Diff
Add pg_conversion system catalog. Update description for multibyte support.
parent
b4b3c63b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/catalogs.sgml
+85
-1
85 additions, 1 deletion
doc/src/sgml/catalogs.sgml
doc/src/sgml/charset.sgml
+36
-34
36 additions, 34 deletions
doc/src/sgml/charset.sgml
with
121 additions
and
35 deletions
doc/src/sgml/catalogs.sgml
+
85
−
1
View file @
88b74dcd
<!--
<!--
Documentation of the system catalogs, directed toward PostgreSQL developers
Documentation of the system catalogs, directed toward PostgreSQL developers
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.4
6
2002/07/2
2 20:23:19 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.4
7
2002/07/2
4 05:51:55 ishii
Exp $
-->
-->
<chapter id="catalogs">
<chapter id="catalogs">
...
@@ -81,6 +81,11 @@
...
@@ -81,6 +81,11 @@
<entry>check constraints, unique / primary key constraints, foreign key constraints</entry>
<entry>check constraints, unique / primary key constraints, foreign key constraints</entry>
</row>
</row>
<row>
<entry>pg_conversion</entry>
<entry>encoding conversion information</entry>
</row>
<row>
<row>
<entry>pg_database</entry>
<entry>pg_database</entry>
<entry>databases within this database cluster</entry>
<entry>databases within this database cluster</entry>
...
@@ -995,6 +1000,85 @@
...
@@ -995,6 +1000,85 @@
</sect1>
</sect1>
<sect1 id="catalog-pg-conversion">
<title>pg_conversion</title>
<para>
This system catalog stores encoding conversion information. See
<command>CREATE CONVERSION</command> for more information.
</para>
<table>
<title>pg_conversion Columns</title>
<tgroup cols=4>
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>References</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>conname</entry>
<entry><type>name</type></entry>
<entry></entry>
<entry>Conversion name (unique within a namespace)</entry>
</row>
<row>
<entry>connamespace</entry>
<entry><type>oid</type></entry>
<entry>pg_namespace.oid</entry>
<entry>
The OID of the namespace that contains this conversion
</entry>
</row>
<row>
<entry>conowner</entry>
<entry><type>int4</type></entry>
<entry>pg_shadow.usesysid</entry>
<entry>Owner (creator) of the namespace</entry>
</row>
<row>
<entry>conforencoding</entry>
<entry><type>int4</type></entry>
<entry></entry>
<entry>Source(for) encoding ID</entry>
</row>
<row>
<entry>contoencoding</entry>
<entry><type>int4</type></entry>
<entry></entry>
<entry>Destination(to) encoding ID</entry>
</row>
<row>
<entry>conproc</entry>
<entry><type>regproc</type></entry>
<entry>pg_proc.oid</entry>
<entry>Conversion procedure</entry>
</row>
<row>
<entry>condefault</entry>
<entry><type>boolean</type></entry>
<entry></entry>
<entry>true if this is the default conversion</entry>
</row>
</tbody>
</tgroup>
</table>
</sect1>
<sect1 id="catalog-pg-database">
<sect1 id="catalog-pg-database">
<title>pg_database</title>
<title>pg_database</title>
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/charset.sgml
+
36
−
34
View file @
88b74dcd
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.2
4
2002/0
4/03 05:39:27 petere
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.2
5
2002/0
7/24 05:51:56 ishii
Exp $ -->
<chapter id="charset">
<chapter id="charset">
<title>Localization</>
<title>Localization</>
...
@@ -326,7 +326,7 @@ perl: warning: Falling back to the standard locale ("C").
...
@@ -326,7 +326,7 @@ perl: warning: Falling back to the standard locale ("C").
<para>
<para>
Tatsuo Ishii (<email>ishii@postgresql.org</email>),
Tatsuo Ishii (<email>ishii@postgresql.org</email>),
last updated 200
0
-0
3
-2
2
.
last updated 200
2
-0
7
-2
4
.
Check <ulink
Check <ulink
url="http://www.sra.co.jp/people/t-ishii/PostgreSQL/">Tatsuo's
url="http://www.sra.co.jp/people/t-ishii/PostgreSQL/">Tatsuo's
web site</ulink> for more information.
web site</ulink> for more information.
...
@@ -346,21 +346,19 @@ perl: warning: Falling back to the standard locale ("C").
...
@@ -346,21 +346,19 @@ perl: warning: Falling back to the standard locale ("C").
overridden when you create a database using
overridden when you create a database using
<application>createdb</application> or by using the SQL command
<application>createdb</application> or by using the SQL command
<command>CREATE DATABASE</>. So you can have multiple databases each with
<command>CREATE DATABASE</>. So you can have multiple databases each with
a different encoding system.
a different encoding system. Note that <acronym>MB</acronym> can
handle single byte characters sets such as ISO-8859-1.
</para>
</para>
<sect2>
<title>Enabling Multibyte Support</title>
<para>
<para>
Run configure with the multibyte option:
Multibyte support is enabled by default since PostgreSQL version 7.3.
</para>
<synopsis>
<sect2>
./configure --enable-multibyte<optional>=<replaceable>encoding_system</replaceable></optional>
<title>Supported character set encodings</title>
</synopsis>
where <replaceable>encoding_system</replaceable> can be one of the
<para>
values in the following table:
Following encoding can be used as database encoding.
<table tocentry="1">
<table tocentry="1">
<title>Character Set Encodings</title>
<title>Character Set Encodings</title>
...
@@ -508,21 +506,6 @@ perl: warning: Falling back to the standard locale ("C").
...
@@ -508,21 +506,6 @@ perl: warning: Falling back to the standard locale ("C").
<literal>LATIN8</>, and <literal>LATIN10</>.
<literal>LATIN8</>, and <literal>LATIN10</>.
</para>
</para>
</important>
</important>
<para>
Here is an example of configuring
<productname>PostgreSQL</productname> to use a Japanese encoding by
default:
<screen>
$ <userinput>./configure --enable-multibyte=EUC_JP</userinput>
</screen>
</para>
<para>
If the encoding system is omitted (<literal>./configure --enable-multibyte</literal>),
<literal>SQL_ASCII</> is assumed.
</para>
</sect2>
</sect2>
<sect2>
<sect2>
...
@@ -539,8 +522,8 @@ $ <userinput>initdb -E EUC_JP</>
...
@@ -539,8 +522,8 @@ $ <userinput>initdb -E EUC_JP</>
sets the default encoding to <literal>EUC_JP</literal> (Extended Unix Code for Japanese).
sets the default encoding to <literal>EUC_JP</literal> (Extended Unix Code for Japanese).
Note that you can use <option>--encoding</option> instead of <option>-E</option> if you prefer
Note that you can use <option>--encoding</option> instead of <option>-E</option> if you prefer
to type longer option strings.
to type longer option strings.
If no <option>-E</> or <option>--encoding</option> option is
given, the encoding
If no <option>-E</> or <option>--encoding</option> option is
specified at configure time
is used.
given, SQL_ASCII
is used.
</para>
</para>
<para>
<para>
...
@@ -583,14 +566,17 @@ $ <userinput>psql -l</userinput>
...
@@ -583,14 +566,17 @@ $ <userinput>psql -l</userinput>
</sect2>
</sect2>
<sect2>
<sect2>
<title>Automatic encoding
translat
ion between server and
<title>Automatic encoding
convers
ion between server and
client</title>
client</title>
<para>
<para>
<productname>PostgreSQL</productname> supports an automatic
<productname>PostgreSQL</productname> supports an automatic
encoding translation between server
encoding conversion between server and client for some
and client for some encodings. The available combinations are
encodings. The conversion info is stored in pg_converson system
listed in <xref linkend="multibyte-translation-table">.
catalog. You can create a new conversion by using <command>CREATE
CONVERSION</command>. PostgreSQL comes with some predefined
conversions. They are listed in <xref
linkend="multibyte-translation-table">.
</para>
</para>
<table tocentry="1" id="multibyte-translation-table">
<table tocentry="1" id="multibyte-translation-table">
...
@@ -887,6 +873,18 @@ RESET CLIENT_ENCODING;
...
@@ -887,6 +873,18 @@ RESET CLIENT_ENCODING;
be overridden using any of the other methods mentioned above.)
be overridden using any of the other methods mentioned above.)
</para>
</para>
</listitem>
</listitem>
<listitem>
<para>
Using client_encoding variable.
If client_encoding variable in postgresql.conf is set, that
client encoding is automatically selected when a connection to the
server is made. (This can subsequently be overridden using any of the
other methods mentioned above.)
</para>
</listitem>
</itemizedlist>
</itemizedlist>
</para>
</para>
</sect2>
</sect2>
...
@@ -909,6 +907,10 @@ RESET CLIENT_ENCODING;
...
@@ -909,6 +907,10 @@ RESET CLIENT_ENCODING;
The Unicode conversion functionality is automatically enabled
The Unicode conversion functionality is automatically enabled
if <option>--enable-multibyte</option> is specified.
if <option>--enable-multibyte</option> is specified.
</para>
</para>
<para>
For 7.3, <option>--enable-unicode-conversion</option> nor
<option>--enable-multibyte</option> is needed.
</para>
</sect2>
</sect2>
<sect2>
<sect2>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment