Re: Field length ?? - Mailing list pgsql-sql

From Markus Schaber
Subject Re: Field length ??
Date
Msg-id 4447AA89.9060405@logix-tt.com
Whole thread Raw
In response to Re: Field length ??  (Frank Bax <fbax@sympatico.ca>)
Responses Re: Field length ??  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi, Frank,

Frank Bax wrote:

> Except that the original fields were neither variable length datatypes,
> not type text.
>         create table test(]
>         satu char(10),
>         dua char(5)
>         );

char is a textual type (in opposite to numeric types), and they are
handled as variable length datatypes internally (even if given a limit).

See http://www.postgresql.org/docs/8.1/static/datatype-character.html

HTH,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org


pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: Field length ??
Next
From: Tom Lane
Date:
Subject: Re: Field length ??