Re: Difference between varchar and text?

From: Vick Khera <vivek(at)khera(dot)org>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Difference between varchar and text?
Date: 2012-11-18 16:57:52
Message-ID: CALd+dcc_L70nCcY7BUYL63g0NrV1ZSWDspODZxm_k-0w437Tkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Nov 18, 2012 at 2:29 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> I'd generally recommend using "text" if you don't have any interest in
> enforcing a specific length limit.
>

Will there be any table re-writing if I do an alter to change the column
type from varchar(N) to text? I have some really old (from 2000 and 2001)
schemas that have a metric boatload of data in them, and I'd like to remove
the old artificial limit on them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Phil Sorber 2012-11-18 18:14:26 Re: Prepared Statement Name Truncation
Previous Message David Johnston 2012-11-18 14:10:23 Re: [GENERAL] Prepared Statement Name Truncation