Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vr7hd-0008Cl-Sh for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2013 14:57:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vr7hc-00071X-Vw for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2013 14:57:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqp2u-0002uu-Ao for pgsql-bugs@postgresql.org; Wed, 11 Dec 2013 19:02:08 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqp2n-0000Wi-3j for pgsql-bugs@postgresql.org; Wed, 11 Dec 2013 19:02:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqp2l-0007Or-HU for pgsql-bugs@postgresql.org; Wed, 11 Dec 2013 19:02:00 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Vqp2g-0008Cc-63 for pgsql-bugs@postgresql.org; Wed, 11 Dec 2013 19:01:54 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: BUG #8677: char(n) - bad limit with arrays of composite type To: pgsql-bugs@postgresql.org From: fabio.pasqualini@ac-reims.fr Message-Id: Date: Wed, 11 Dec 2013 19:01:54 +0000 X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8677 Logged by: Fabio Pasqualini Email address: fabio.pasqualini@ac-reims.fr PostgreSQL version: 8.4.19 Operating system: Debian Description: -- test with psql (8.4.19) on debian create table t1 ( libelle varchar(100), cp char(5) ); create table t2 ( id_t2 integer primary key, nom varchar(100), tab_t1 t1 array ); insert into t2(id_t2, nom, tab_t1) values ( 1,'test1', '{ "(''toto'', ''1'')", "(''titi'', ''1'')"}' ); insert into t2(id_t2, nom, tab_t1) values ( 2,'test2', '{ "(''toto'', ''12'')", "(''titi'', ''12'')"}' ); insert into t2(id_t2, nom, tab_t1) values ( 3,'test3', '{ "(''toto'', ''123'')", "(''titi'', ''123'')"}' ); insert into t2(id_t2, nom, tab_t1) values ( 4,'test4', '{ "(''toto'', ''1234'')", "(''titi'', ''1234'')"}' ); insert into t2(id_t2, nom, tab_t1) values ( 5,'test5', '{ "(''toto'', ''12345'')", "(''titi'', ''12345'')"}' ); CREATE TABLE psql:./enseignement/bts/2014/prog_c++/carnet2/bug/test.sql:14: NOTICE: CREATE TABLE / PRIMARY KEY créera un index implicite « t2_pkey » pour la table « t2 » CREATE TABLE INSERT 0 1 INSERT 0 1 psql:./enseignement/bts/2014/prog_c++/carnet2/bug/test.sql:25: ERREUR: valeur trop longue pour le type character(5) LIGNE 2 : values ( 3,'test3', '{ "(''toto'', ''123'')", "(''titi'', '... ^ psql:./enseignement/bts/2014/prog_c++/carnet2/bug/test.sql:28: ERREUR: valeur trop longue pour le type character(5) LIGNE 2 : values ( 4,'test4', '{ "(''toto'', ''1234'')", "(''titi'', ... ^ psql:./enseignement/bts/2014/prog_c++/carnet2/bug/test.sql:31: ERREUR: valeur trop longue pour le type character(5) LIGNE 2 : values ( 5,'test5', '{ "(''toto'', ''12345'')", "(''titi'',... -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs