Re: increasing varchar column size is taking too much time - Mailing list pgsql-general

From Tom Lane
Subject Re: increasing varchar column size is taking too much time
Date
Msg-id 27089.1423928502@sss.pgh.pa.us
Whole thread Raw
In response to increasing varchar column size is taking too much time  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
AI Rumman <rummandba@gmail.com> writes:
> I started the following query in Postgresql 9.1 where only this sql is
> running on the host and it has been taking more than an hour and still
> running.
>  alter table userdata.table1 alter column name type varchar(512);

Pre-9.2 releases don't realize that that doesn't require a table rewrite.

You can either wait it out, or if you're feeling brave, manually modify
the column's pg_attribute.atttypmod field.

            regards, tom lane


pgsql-general by date:

Previous
From: Ramesh T
Date:
Subject: Re: Collection
Next
From: Shanker Singh
Date:
Subject: parallel dump fails to dump large tables