From: Juan Miguel <juanmime@ono.com>
To: pgsql-admin@postgresql.org
Subject: Re: Speed & Memory Management
Date: Wed, 2 Apr 2003 23:13:17 +0200
Message-ID: <200304022313.17633.juanmime@ono.com> (raw)
> That would buy you absolutely nothing. char() is not faster than text.
> Instead you would make everything slower because the system would
> constantly have to pad and trim your values and it would bloat the storage
> with the extra spaces.
First, sorry about my english.
Well ... but ... reading database theory books, you can see that fixed size
records are "better" than variant size records. When the records are size
fixed, inserts, updates and deletes can recalculate easier the position of
the rest records in the pages. These books tell you that in general cases,
variant record size tables (records that have variant type colums, for
example) imply a lower performance in the system ...
Why in postgresql these things don't matter ?
Thanks.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: juanmime@ono.com
Subject: Re: Speed & Memory Management
In-Reply-To: <200304022313.17633.juanmime@ono.com>
References: <200304022313.17633.juanmime@ono.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox