Re: Alter definition of a column - Mailing list pgsql-general

From Shoaib Mir
Subject Re: Alter definition of a column
Date
Msg-id bf54be870701192228l27722a8em127653c74063aa51@mail.gmail.com
Whole thread Raw
In response to Re: Alter definition of a column  ("Kelly Burkhart" <kelly.burkhart@gmail.com>)
Responses Re: Alter definition of a column  ("Kelly Burkhart" <kelly.burkhart@gmail.com>)
List pgsql-general
Should help --> ALTER TABLE tablename ALTER columname TYPE text;

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

On 1/20/07, Kelly Burkhart <kelly.burkhart@gmail.com> wrote:
On 1/19/07, Martijn van Oosterhout <kleptog@svana.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

pgsql-general by date:

Previous
From: "Shoaib Mir"
Date:
Subject: Re: Installing Postegres side-by-side with M$ SQL server
Next
From: "Mikael Carneholm"
Date:
Subject: Re: Help : Microsoft SQL Server equivalents in PostGreSQL