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

From Tom Lane
Subject Re: Field length ??
Date
Msg-id 19020.1145547865@sss.pgh.pa.us
Whole thread Raw
In response to Re: Field length ??  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-sql
Markus Schaber <schabi@logix-tt.com> writes:
> Frank Bax wrote:
>> Except that the original fields were neither variable length datatypes,
>> not type text.

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

char(n) *is* a variable-length type, not merely "handled as such",
because the limit N is measured in characters not bytes.  To support
variable-length encodings such as UTF8 we have to treat it as variable
length.
        regards, tom lane


pgsql-sql by date:

Previous
From: Markus Schaber
Date:
Subject: Re: Field length ??
Next
From: Tom Lane
Date:
Subject: Re: At time zone madness!