From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Moshe Jacobson <moshe(at)neadwerx(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Difference between varchar and text? |
Date: | 2012-11-05 21:23:48 |
Message-ID: | 50982E64.9010403@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 11/05/2012 12:46 PM, Moshe Jacobson wrote:
> Is there any practical difference between defining a column as a
> varchar(n) vs. a varchar vs. a text field?
No except for your already noted exception that you can limit the size
of varchar.
>
> I've always been under the impression that if I am wanting to index a
> varchar column, it is better to set a maximum length.
This entirely depends on what you are doing.
JD
--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579
From | Date | Subject | |
---|---|---|---|
Next Message | David Johnston | 2012-11-05 21:36:58 | Re: Difference between varchar and text? |
Previous Message | John R Pierce | 2012-11-05 21:22:54 | Re: Difference between varchar and text? |