Re: Smartest way to resize a column? - Mailing list pgsql-general

From Phoenix Kiula
Subject Re: Smartest way to resize a column?
Date
Msg-id e373d31e0901111721n22b11518h96384b44c0426d98@mail.gmail.com
Whole thread Raw
In response to Re: Smartest way to resize a column?  ("Ian Barwick" <barwick@gmail.com>)
Responses Re: Smartest way to resize a column?  (Adrian Klaver <aklaver@comcast.net>)
List pgsql-general
On Mon, Jan 12, 2009 at 9:12 AM, Ian Barwick <barwick@gmail.com> wrote:
> 2009/1/12 Phoenix Kiula <phoenix.kiula@gmail.com>:
>> I am trying to resize a column on a large-ish database (with 5 million rows).
>>
>
> ALTER TABLE users ALTER COLUMN name TYPE VARCHAR(35)
>
> HTH
>



Thanks! I guess I was missing the word "TYPE". This won't affect my
"not null" on the column right?

Also, is there a safe and fast way of doing this on a live database,
without bringing it down if possible? This is an indexed column so I
wonder if that will slow up the process quite a bit?

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Smartest way to resize a column?
Next
From: Adrian Klaver
Date:
Subject: Re: Smartest way to resize a column?