Thread: Problem with multibyte encoding

Problem with multibyte encoding

From
"Sergei Pohilko"
Date:
Hi!

I have problem to enable the multibyte encoding.

I've installed PostgreSQL:

./configure
gmake
gmake install
adduser postgres
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

The short version worked fine.
Was able to create new databases (test2, qqq) using CREATE DATABASE command.

Then I tried to enable the MB encoding:

-- opened another session
-- connected as root
-- ran:
    ./configure --enable-multibyte=UNICODE
It ran without error messages.

But in psql:

test=> CREATE DATABASE dev1 WITH ENCODING = 'UNICODE';
ERROR:  Multi-byte support is not enabled

Platform: Linux RadHat 6.2,  PostgreSQL 7.1.2.

What's the problem?

Thanks.
Sergei Pohilko