Re: troubles with postgresql - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: troubles with postgresql
Date
Msg-id 20030223093438.GB6548@svana.org
Whole thread Raw
In response to troubles with postgresql  ("erwan ancel" <erwan.ancel@free.fr>)
List 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@svana.org>   http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.

Attachment

pgsql-general by date:

Previous
From: "erwan ancel"
Date:
Subject: troubles with postgresql
Next
From: "CN LIOU"
Date:
Subject: Multi-byte Character Set Encoding Question