Skip site navigation (1) Skip section navigation (2)

Re: initdb of regression test failed.

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: initdb of regression test failed.
Date: 2007-10-04 07:02:11
Message-ID: 040301c80654$7c8faf70$c601a8c0@HP22720319231 (view raw or flat)
Thread:
Lists: 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=#

In response to

pgsql-patches by date

Next:From: ITAGAKI TakahiroDate: 2007-10-04 10:11:27
Subject: Re: initdb of regression test failed.
Previous:From: Tom LaneDate: 2007-10-04 05:44:35
Subject: Re: initdb of regression test failed.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group