Re: Varchar Vs. Text index matching - why different?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Varchar Vs. Text index matching - why different?
Date: 2003-03-20 23:36:58
Message-ID: 5.1.0.14.0.20030321103410.03e48a38@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 10:18 AM 20/03/2003 -0500, Tom Lane wrote:
>I have been wondering whether we couldn't eliminate the datatype
>distinction between text and varchar.

That would be great if done magically in the backend. If all text columns
were effectively wrapped in a Cast(X to text), life from a users PoV would
be a little simpler. I assume Varchar(20) would still exist and be limited
to 20 chars.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2003-03-20 23:48:06 Re: A bad behavior under autocommit off mode
Previous Message Hiroshi Inoue 2003-03-20 23:29:02 Re: A bad behavior under autocommit off mode