pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: fabio.pasqualini@ac-reims.fr
To: pgsql-bugs@postgresql.org
Subject: BUG #8677: char(n) - bad limit with arrays of composite type
Date: Wed, 11 Dec 2013 19:01:54 +0000
Message-ID: <E1Vqp2g-0008Cc-63@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)  latest in thread

Message-ID: <E1Vqp2g-0008Cc-63@wrigleys.postgresql.org>
Permalink:  ../E1Vqp2g-0008Cc-63@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Vqp2g-0008Cc-63@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: fabio.pasqualini@ac-reims.fr
  Subject: Re: BUG #8677: char(n) - bad limit with arrays of composite type
  In-Reply-To: <E1Vqp2g-0008Cc-63@wrigleys.postgresql.org>
  References: <E1Vqp2g-0008Cc-63@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox