From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | failed Assert() in utf8_and_iso8859_1.c |
Date: | 2002-09-12 15:29:06 |
Message-ID: | 20020912172906.H15044@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I have file with this code:
----------
\l
SHOW SERVER_ENCODING;
SHOW CLIENT_ENCODING;
--- Languages table
---
CREATE TABLE lang
(
--- 'id' is here lang abbreviation
---
id varchar(3) PRIMARY KEY,
name varchar(16) NOT NULL --- lang fullname
);
COPY lang FROM stdin;
EN English
DE German
JP Japanese
\.
----------
and now I use latest PostgreSQL from CVS:
$ psql anydb < langs.sql
List of databases
Name | Owner | Encoding
-----------+----------+-----------
anydb | zakkr | UNICODE
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
test | postgres | SQL_ASCII
(4 rows)
server_encoding
-----------------
UNICODE
(1 row)
client_encoding
-----------------
LATIN1
(1 row)
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'lang_pkey' for table 'lang'
CREATE TABLE
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
lost synchronization with server, resetting connection
connection to server was lost
In the server log file is:
TRAP: FailedAssertion("!(len > 0)", File: "utf8_and_iso8859_1.c", Line: 45)
If I use INSERT instead COPY it's OK.
Karel
--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Clift | 2002-09-12 15:32:18 | Re: PGXLOG variable worthwhile? |
Previous Message | Hannu Krosing | 2002-09-12 15:23:41 | Re: DROP COLUMN misbehaviour with multiple inheritance |