From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | erwan ancel <erwan(dot)ancel(at)free(dot)fr> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: troubles with postgresql |
Date: | 2003-02-23 09:34:38 |
Message-ID: | 20030223093438.GB6548@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Feb 23, 2003 at 09:22:44AM +0100, erwan ancel wrote:
> Hi,
> There are 2 things that disturb me in postgresql:
> - apparently, there is no unsigned number type. why ??? This is very useful,
> especially for serials.
Since serial go upto 64 bits, I don't think signed/unsigned will make a
difference.
> - when we get a record containing a fixed sized string rows, we always get a
> string that is filled with spaces at the end to match max size. Again, why ?
> There is no need for these spaces, and I guess those spaces are sent through
> the network, which is not optimal...
You probably defined them char(n). varchar(n) has no padding. text has no
limit in size. Choose the appropriate type for your purposes.
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.
From | Date | Subject | |
---|---|---|---|
Next Message | CN LIOU | 2003-02-23 10:42:03 | Multi-byte Character Set Encoding Question |
Previous Message | erwan ancel | 2003-02-23 08:22:44 | troubles with postgresql |