From: Robert Treat <xzilla@users.sourceforge.net>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: Speed & Memory Management
Date: 03 Apr 2003 14:47:49 -0500
Message-ID: <1049399269.13798.5329.camel@camel> (raw)
In-Reply-To: <3E8C7BD0.3020006@virginia.edu>
References: <3E8C7BD0.3020006@virginia.edu>
On Thu, 2003-04-03 at 13:22, Jodi Kanter wrote:
> In response to the speed and memory management messages posted. Can
> someone tell me if the varchar(N) data type also impedes performance by
> padding with spaces?
> Thank you,
> Jodi
>
Well no since varchar doesn't pad spaces. Theoretically this does make
it an improvement over char, although by this same theory it does have
to do length checks on the input strings, which would slow things down
versus text data types *in theory*.
Don't forget also that a varchar(30) will _prevent_ strings longer than
30 chars, not truncate them.
Robert Treat
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: xzilla@users.sourceforge.net, jkanter@virginia.edu
Subject: Re: Speed & Memory Management
In-Reply-To: <1049399269.13798.5329.camel@camel>
References: <3E8C7BD0.3020006@virginia.edu> <1049399269.13798.5329.camel@camel>
* 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