Re: [SQL] text vs varchar

2002-06-19 Thread Achilleus Mantzios
On Tue, 18 Jun 2002, 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. Well indexing te

Re: [SQL] text vs varchar

2002-06-18 Thread Josh Goldberg
I have no trouble indexing TEXT datatype in postgres-7.x - Original Message - From: "Josh Berkus" <[EMAIL PROTECTED]> > Yes. You can't index TEXT because it's of potentially unlimited length. ---(end of broadcast)--- TIP 2: you can get

Re: [SQL] text vs varchar

2002-06-18 Thread Wei Weng
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. > > -- >

Re: [SQL] text vs varchar

2002-06-18 Thread Michelle Murrain
On Tue, 2002-06-18 at 18:07, Wei Weng wrote: > 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? There is one big disadvantage that I've found, but might be utterly unimportant to you. Some application

Re: [SQL] text vs varchar

2002-06-18 Thread Josh Berkus
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 ---(end of broadcast)-

[SQL] text vs varchar

2002-06-18 Thread Wei Weng
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? Thanks -- Wei Weng Network Software Engineer KenCast Inc. ---(end of broadcast)--- TIP 3: if postin