OSDN Git Service

I really hope that I haven't missed anything in this one...
authorMarc G. Fournier <scrappy@hub.org>
Fri, 24 Jul 1998 03:32:46 +0000 (03:32 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 24 Jul 1998 03:32:46 +0000 (03:32 +0000)
commitbf00bbb0c4940b80b46b7e5b379cd64184f2262f
treebf32bf3bafe6f367ee97249c83afb4c9e9a637af
parent6e66468f3a160878111578a93be2852635eb4f4d
I really hope that I haven't missed anything in this one...

From: t-ishii@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
82 files changed:
doc/README.mb
doc/README.mb.jp
src/Makefile.global.in
src/backend/bootstrap/Makefile
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootscanner.l
src/backend/bootstrap/bootstrap.c
src/backend/catalog/Makefile
src/backend/commands/Makefile
src/backend/commands/cluster.c
src/backend/commands/copy.c
src/backend/commands/dbcommands.c
src/backend/commands/rename.c
src/backend/commands/user.c
src/backend/commands/vacuum.c
src/backend/commands/variable.c
src/backend/parser/Makefile
src/backend/parser/gram.y
src/backend/parser/keywords.c
src/backend/regex/Makefile
src/backend/rewrite/Makefile
src/backend/rewrite/rewriteSupport.c
src/backend/storage/lmgr/Makefile
src/backend/storage/lmgr/lmgr.c
src/backend/storage/smgr/Makefile
src/backend/storage/smgr/md.c
src/backend/tcop/utility.c
src/backend/utils/Makefile
src/backend/utils/adt/like.c
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varlena.c
src/backend/utils/cache/Makefile
src/backend/utils/cache/fcache.c
src/backend/utils/cache/relcache.c
src/backend/utils/init/Makefile
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/mb/Makefile [new file with mode: 0644]
src/backend/utils/mb/README [new file with mode: 0644]
src/backend/utils/mb/common.c [new file with mode: 0644]
src/backend/utils/mb/conv.c [moved from src/backend/commands/mbutils.c with 60% similarity]
src/backend/utils/mb/mbutils.c [new file with mode: 0644]
src/backend/utils/mb/utftest.c [moved from src/backend/regex/utftest.c with 92% similarity]
src/backend/utils/mb/variable.c [new file with mode: 0644]
src/backend/utils/mb/wchar.c [moved from src/backend/regex/utils.c with 76% similarity]
src/backend/utils/mb/wstrcmp.c [moved from src/backend/regex/wstrcmp.c with 98% similarity]
src/backend/utils/mb/wstrncmp.c [moved from src/backend/regex/wstrncmp.c with 98% similarity]
src/backend/utils/misc/Makefile
src/backend/utils/misc/database.c
src/bin/Makefile
src/bin/createdb/Makefile
src/bin/createdb/createdb.sh
src/bin/initdb/Makefile
src/bin/initdb/initdb [deleted file]
src/bin/pg_encoding/Makefile [new file with mode: 0644]
src/bin/pg_encoding/pg_encoding.c [new file with mode: 0644]
src/bin/psql/psqlHelp.h
src/configure.in
src/include/catalog/pg_proc.h
src/include/commands/dbcommands.h
src/include/mb/pg_wchar.h [moved from src/include/regex/pg_wchar.h with 59% similarity]
src/include/miscadmin.h
src/include/nodes/parsenodes.h
src/include/regex/regex.h
src/interfaces/libpq/Makefile.in
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/pqmbutils.c [deleted file]
src/interfaces/libpq/pqutils.c [deleted file]
src/test/mb/README [new file with mode: 0644]
src/test/mb/expected/euc_cn.out [new file with mode: 0644]
src/test/mb/expected/euc_jp.out [new file with mode: 0644]
src/test/mb/expected/euc_kr.out [new file with mode: 0644]
src/test/mb/expected/mule_internal.out [new file with mode: 0644]
src/test/mb/expected/sjis.out [new file with mode: 0644]
src/test/mb/expected/unicode.out [new file with mode: 0644]
src/test/mb/mbregress.sh [new file with mode: 0644]
src/test/mb/sql/euc_cn.sql [new file with mode: 0644]
src/test/mb/sql/euc_jp.sql [new file with mode: 0644]
src/test/mb/sql/euc_kr.sql [new file with mode: 0644]
src/test/mb/sql/mule_internal.sql [new file with mode: 0644]
src/test/mb/sql/sjis.sql [new file with mode: 0644]
src/test/mb/sql/unicode.sql [new file with mode: 0644]