From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: dba <dbadbb@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Field wise checking the performance.
Date: Mon, 14 Feb 2011 14:30:03 +0200
Message-ID: <4D59204B.9010300@enterprisedb.com> (raw)
In-Reply-To: <1297685187135-3384348.post@n5.nabble.com>
References: <1297685187135-3384348.post@n5.nabble.com>
On 14.02.2011 14:06, dba wrote:
> I have two identical tables. But the with of the fields are different. Need
> to know whether changing from varchar(100) to varchar(30) will increase the
> performance, or its just the memory access.
It will make no difference. The max length is just a constraint on what
values can be stored, it doesn't affect how the strings are stored. In
both cases, the strings are stored in a variable-length format.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: heikki.linnakangas@enterprisedb.com, dbadbb@gmail.com
Subject: Re: Field wise checking the performance.
In-Reply-To: <4D59204B.9010300@enterprisedb.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