Bug with char() type

PostgreSQL <postgres@linux.tpd.deuroconsult.ro>

From: PostgreSQL <postgres@linux.tpd.deuroconsult.ro>
To: PostgreSQL-development <hackers@postgreSQL.org>
Date: 1998-02-05T22:01:34Z
Lists: pgsql-hackers
Snapshot of 2 feb:

postgres=> create table one (str char(52));
CREATE
postgres=> insert into one values ('Salut!');
INSERT 546025 1
postgres=> create table two (str char(52));
CREATE
postgres=> insert into two select * from one;
ERROR:  Length of str is longer than length of target column str

Good luck!

Costin Oproiu