Re: Datatype sizes; a space and speed issue?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Joel Matthew <rees(at)ddcom(dot)co(dot)jp>, pgsql-general(at)postgresql(dot)org
Subject: Re: Datatype sizes; a space and speed issue?
Date: 2004-06-23 05:11:50
Message-ID: 27035.1087967510@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> writes:
> The difference you cite is for char(N) fields, which are always padded
> with blanks to fill the N chars.

And, again, that's N logical *characters*, not bytes.

We used to have some attempts at optimizing on the assumption that
char(n) fields were physically fixed-width, but we gave it up as a
bad job several major releases back ... it was never more than a
very marginal optimization anyway ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Madison Kelly 2004-06-23 05:37:03 Re: Datatype sizes; a space and speed issue?
Previous Message Tom Lane 2004-06-23 05:01:50 Re: Parameters from trigger to function.