From: Josh Berkus <josh@agliodbs.com>
To: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: Re: text vs varchar
Date: Tue, 18 Jun 2002 15:59:54 -0700
Message-ID: <200206181559.54654.josh@agliodbs.com> (raw)
In-Reply-To: <1024438061.16895.2.camel@Monet>
References: <1024438061.16895.2.camel@Monet>
Wei,
> Is there any disadvantage of using TEXT datatype as opposed to a VARCHAR
> datatype with a maximum length, especially when I do searches on them?
Yes. You can't index TEXT because it's of potentially unlimited length.
--
-Josh Berkus
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-sql@postgresql.org
Cc: josh@agliodbs.com, wweng@kencast.com
Subject: Re: text vs varchar
In-Reply-To: <200206181559.54654.josh@agliodbs.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