From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: Text/Varchar performance...
Date: Mon, 10 Oct 2005 14:54:22 +0200
Message-ID: <20051010125422.GA7454@uio.no> (raw)
In-Reply-To: <SVONE1yEXUIEAOeIiGX0000000c@ki-communication.com>
References: <20051005182803.0E6B0100E5@mail.clickdiario.com>
<SVONE1yEXUIEAOeIiGX0000000c@ki-communication.com>
On Mon, Oct 10, 2005 at 06:28:23PM +0700, Ahmad Fajar wrote:
> 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.
That really depends on the queries. An index will help some queries (notably
<, = or > comparisons, or LIKE 'foo%' with the C locale), but definitely not
all (it will help you nothing for LIKE '%foo%').
> 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.
So can varchar.
/* Steinar */
--
Homepage: http://www.sesse.net/
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: sgunderson@bigfoot.com
Subject: Re: Text/Varchar performance...
In-Reply-To: <20051010125422.GA7454@uio.no>
* 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