Re: Alter definition of a column

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Kelly Burkhart" <kelly(dot)burkhart(at)gmail(dot)com>
Cc: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, af300wsm(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Alter definition of a column
Date: 2007-01-20 06:28:31
Message-ID: bf54be870701192228l27722a8em127653c74063aa51@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Should help --> ALTER TABLE tablename ALTER columname TYPE text;

----------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 1/20/07, Kelly Burkhart <kelly(dot)burkhart(at)gmail(dot)com> wrote:
>
> On 1/19/07, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
> >
> > ALTER TABLE, to be correct, actually has to check the entire table to
> > make sure it's ok. By doing it directly you're basically telling the DB
> > it's OK.
> >
> > For making a varchar column longer it's safe though, and the easiest
> way.
>
> Is it possible to use a similar method to change a varchar(n) to text
> with no length constraint?
>
> -K
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mikael Carneholm 2007-01-20 10:21:11 Re: Help : Microsoft SQL Server equivalents in PostGreSQL
Previous Message Shoaib Mir 2007-01-20 06:23:00 Re: Installing Postegres side-by-side with M$ SQL server