Re: [NOVICE] Re: [INTERFACES] psql ERROR : Character Types Tuple is too big: size xxxxx

From: "D(dot) Duccini" <duccini(at)backpack(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: webmaster(at)advl(dot)org, pgsql-interfaces(at)postgreSQL(dot)org, pgsql-novice(at)postgreSQL(dot)org, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [NOVICE] Re: [INTERFACES] psql ERROR : Character Types Tuple is too big: size xxxxx
Date: 2000-01-14 15:54:07
Message-ID: Pine.GSO.3.96.1000114095253.23313B-100000@ra.bpsi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces


and on top of that, why insert character strings into columns expecting
numeric values?

defintely use VARCHAR unless you are going to be filling those columns up

-duck

> Compte utilisateur Sultan-advl <webmaster(at)advl(dot)org> writes:
> > newkiwi=> insert into localisation values ('999', 'ee', 'ff', '999', 'gg',
> > 'hh', 'ii', 'jj', '999');
> > ERROR: Tuple is too big: size 12356
> > newkiwi=> \d localisation
> > Table = localisation
> > +----------------------------------+----------------------------------+-------+
> > | Field | Type | Length|
> > +----------------------------------+----------------------------------+-------+
> > | id_loc | int4 not null | 4 |
> > | voie_loc | char() | 2048 |
> > | codebat_loc | char() | 2048 |
> > | idplan_loc | int4 | 4 |
> > | xplan_loc | char() | 2048 |
> > | yplan_loc | char() | 2048 |
> > | acces_loc | char() | 2048 |
> > | accesen_loc | char() | 2048 |
> > | id_ville_loc | int4 | 4 |
> > +----------------------------------+----------------------------------+-------+
>
> Well, you've got six fixed-size 2K fields, which are going to take up
> 12K all by themselves, plus there's a few dozen bytes of overhead.
>
> I'd suggest using varchar or text instead of char --- do you really
> need 12K of blank-padding in every record?
>
> regards, tom lane
>
> ************
>

-----------------------------------------------------------------------------
david(at)backpack(dot)com BackPack Software, Inc. www.backpack.com
+1 651.645.7550 voice "Life is an Adventure.
+1 651.645.9798 fax Don't forget your BackPack!"
-----------------------------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rick Delaney 2000-01-14 16:10:05 Oids vs Serial fields (was Re: [GENERAL] searching oid's)
Previous Message Tom Lane 2000-01-14 15:34:14 Re: [INTERFACES] psql ERROR : Character Types Tuple is too big: size xxxxx

Browse pgsql-interfaces by date

  From Date Subject
Next Message Laurent Pautet 2000-01-14 17:19:11 multithread safety of ODBC driver
Previous Message Mark Bedish 2000-01-14 15:43:00 unsubscribe