Re: How to handle larger databases?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Matt <matt(at)kynx(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to handle larger databases?
Date: 2004-11-22 11:42:50
Message-ID: 20041122114246.GF6330@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 22, 2004 at 11:33:35AM +0000, Matt wrote:
> > Especially since PostgreSQL has no fixed length string types, so
> > following that advice would exclude any strings. That's kind of
> > useless.
>
> char(n) ?

Is not fixed length. The actual size varies by encoding. Consider the
string:

zeeën

Latin-9 5 bytes
UTF-8 6 bytes
UTF-16 10 bytes

But it should still fit in a char(5), wouldn't you agree?

In postgresql there is no difference in storage method between text,
varchar(n) and char(n).
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Katsaros Kwn/nos 2004-11-22 12:25:26 Oid to text...
Previous Message Cornelius Buschka 2004-11-22 11:33:47 Re: Delete very slow after deletion of many rows in dependent