pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: text vs varchar
Date: 18 Jun 2002 19:49:50 -0400
Message-ID: <1024444191.16918.6.camel@Monet> (raw)
In-Reply-To: <200206181559.54654.josh@agliodbs.com>
References: <1024438061.16895.2.camel@Monet>
	<200206181559.54654.josh@agliodbs.com>

On Tue, 2002-06-18 at 18:59, Josh Berkus wrote:
> 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
> 
> 
I noticed that it is a characteristics of MS SQL Server, but I did
successfully create unique index based on a TEXT field in Postgresql
7.2, while that failed in MS SQL Server (7).

Or do they behave the same in this aspect?

Thanks

-- 
Wei Weng
Network Software Engineer
KenCast Inc.





view thread (6+ messages)  latest in thread

Message-ID: <1024444191.16918.6.camel@Monet>
Permalink:  ../1024444191.16918.6.camel@Monet/
Also on:    postgresql.org/message-id/1024444191.16918.6.camel@Monet

 · 

reply

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: wweng@kencast.com, josh@agliodbs.com
  Subject: Re: text vs varchar
  In-Reply-To: <1024444191.16918.6.camel@Monet>

* 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