Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bb76dd85
Commit
bb76dd85
authored
Dec 18, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Included are patches for doc/README.mb and README.mb.jp.
Please apply to both trees. -- Tatsuo Ishii
parent
99603f85
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
73 deletions
+142
-73
doc/README.mb
doc/README.mb
+37
-12
doc/README.mb.jp
doc/README.mb.jp
+105
-61
No files found.
doc/README.mb
View file @
bb76dd85
postgresql 6.4 multi-byte (MB) support README
Jul 22
1998
postgresql 6.4 multi-byte (MB) support README
Dec 16
1998
Tatsuo Ishii
t-ishii@sra.co.jp
...
...
@@ -11,7 +11,7 @@ multi-byte character sets such as EUC(Extended Unix Code), Unicode and
Mule internal code. With the MB enabled you can use multi-byte
character sets in regexp ,LIKE and some functions. The encoding system
chosen is determined when initializing your PostgreSQL installation
using initdb(1). Note that this can be overrid
ed
when creating a
using initdb(1). Note that this can be overrid
den
when creating a
database using createdb(1) or create database SQL command. So you
could have multiple databases with different encoding system.
...
...
@@ -23,16 +23,13 @@ me know if you find any problem while using 8-bit characters)
1. How to use
create src/Makefile.custom with a line including:
MB=encoding_system
or run configure with the mb option:
run configure with the mb option:
% configure --with-mb=encoding_system
where encoding_system is one of:
SQL_ASCII ASCII
EUC_JP Japanese EUC
EUC_CN Chinese EUC
EUC_KR Korean EUC
...
...
@@ -47,11 +44,6 @@ where encoding_system is one of:
Example:
% cat Makefile.custom
MB=EUC_JP
or
% configure --with-mb=EUC_JP
If MB is disabled, nothing is changed except better supporting for
...
...
@@ -78,6 +70,31 @@ another way to accomplish this is to use a SQL command:
CREATE DATABASE korean WITH ENCODING = 'EUC_KR';
The encoding for a database is represented as "encoding" column in the
pg_database system catalog.
datname |datdba|encoding|datpath
-------------+------+--------+-------------
template1 | 1739| 1|template1
postgres | 1739| 0|postgres
euc_jp | 1739| 1|euc_jp
euc_kr | 1739| 3|euc_kr
euc_cn | 1739| 2|euc_cn
unicode | 1739| 5|unicode
mule_internal| 1739| 6|mule_internal
A number in the encoding column is "encoding id" and can be translated
to the encoding name using pg_encoding command.
$ pg_encoding 1
EUC_JP
If an argument to pg_encoding is not a number, then it is regarded as
an encoding name and pg_encoding will return the encoding id.
$ pg_encoding EUC_JP
1
3. PGCLIENTENCODING
If an environment variable PGCLIENTENCODING is defined on the
...
...
@@ -90,6 +107,7 @@ backend would be translated to SJIS of course.
Supported encodings for PGCLIENTENCODING are:
SQL_ASCII ASCII
EUC_JP Japanese EUC
SJIS Yet another Japanese encoding
EUC_CN Chinese EUC
...
...
@@ -151,6 +169,13 @@ Unicode: http://www.unicode.org/
5. History
Dec 15, 1998
* Bugs related to SQL_ASCII support fixed
Nov 5, 1998
* 6.4 release. In this version, pg_database has "encoding"
column that represents the database encoding
Jul 22, 1998
* determine encoding at initdb/createdb rather than compile time
* support for PGCLIENTENCODING when issuing COPY command
...
...
doc/README.mb.jp
View file @
bb76dd85
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment