Re: initdb of regression test failed. - Mailing list pgsql-patches

From Hiroshi Saito
Subject Re: initdb of regression test failed.
Date
Msg-id 040301c80654$7c8faf70$c601a8c0@HP22720319231
Whole thread Raw
In response to Re: initdb of regression test failed.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi Tom-san.

This may be mere information...

In 8.3, when it has different encoding for every database, a locale requires C.
Therefore, I am the reason which desires C by regression test.

--
in>initdb -E EUC_JP -D../data --locale=Japanese_Japan.20932

The files belonging to this database system will be owned by user "hiroshi".
This user must also own the server process.

The database cluster will be initialized with locale Japanese_Japan.20932.
initdb: could not find suitable text search configuration for locale "Japanese_J
apan.20932"
The default text search configuration will be set to "simple".

creating directory ../data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers/max_fsm_pages ... 32MB/204800
creating configuration files ... ok
creating template1 database in ../data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.

Success. You can now start the database server using:

--
in>psql template1
Welcome to psql 8.3devel, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

template1=# \l
       List of databases
   Name    |  Owner  | Encoding
-----------+---------+----------
 postgres  | hiroshi | EUC_JP
 template0 | hiroshi | EUC_JP
 template1 | hiroshi | EUC_JP
(3 rows)

template1=# create database hiroshi;
CREATE DATABASE
template1=# \l
       List of databases
   Name    |  Owner  | Encoding
-----------+---------+----------
 hiroshi   | hiroshi | EUC_JP
 postgres  | hiroshi | EUC_JP
 template0 | hiroshi | EUC_JP
 template1 | hiroshi | EUC_JP
(4 rows)

template1=# show LC_CTYPE;
       lc_ctype
----------------------
 Japanese_Japan.20932
(1 row)

template1=# create database utfdb encoding='UTF8';
ERROR:  encoding UTF8 does not match server's locale Japanese_Japan.20932
DETAIL:  The server's LC_CTYPE setting requires encoding EUC_JP.
template1=#

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: initdb of regression test failed.
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: initdb of regression test failed.