From: Ahmad Fajar <gendowo@konphalindo.or.id>
To: 'Cristian Prieto' <cristian@clickdiario.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Text/Varchar performance...
Date: Mon, 10 Oct 2005 18:28:23 +0700
Message-ID: <SVONE1yEXUIEAOeIiGX0000000c@ki-communication.com> (raw)
In-Reply-To: <20051005182803.0E6B0100E5@mail.clickdiario.com>
Dear Cristian,
If you need to index the field, you must know that it limit the length up to
1000 bytes. So if you need to index the field you must limit the field type,
ex: varchar(250), than you can index the field and you can gain better
perfomance in searching base on the fields, because the search uses the
index you have been created.
If you do not need to index the field, you can use the text field. Because
text field can store data up to 4 Gbytes.
Regards,
ahmad fajar
-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Cristian Prieto
Sent: Kamis, 06 Oktober 2005 1:22
To: pgsql-general@postgresql.org; pgsql-performance@postgresql.org
Subject: [PERFORM] Text/Varchar performance...
Hello, just a little question, It's preferable to use Text Fields or
varchar(255) fields in a table? Are there any performance differences in the
use of any of them?
Thanks a lot for your answer!
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
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-performance@postgresql.org
Cc: gendowo@konphalindo.or.id, cristian@clickdiario.com
Subject: Re: Text/Varchar performance...
In-Reply-To: <SVONE1yEXUIEAOeIiGX0000000c@ki-communication.com>
References: <20051005182803.0E6B0100E5@mail.clickdiario.com> <SVONE1yEXUIEAOeIiGX0000000c@ki-communication.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