Search Postgresql Archives

Re: Smartest way to resize a column?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> ALTER COLUMN TYPE is intended for cases where actual transformation of
> the data is involved.  Obviously varchar(20) to varchar(35) doesn't
> really require any per-row effort, but there's no operation in the
> system that handles that case.  But if you're brave, you can do it
> via manipulation of the system catalogs.  Observe:

...snip....


Thanks Tom. Yes, no data change is required. But I don't think I have
the understanding to try what you suggested. Running the alter table
on my home database (almost same data) took an hour and it wasn't
complete. I had even dropped the index. So I guess altering it that
way is a pain in PGSQL. Bummer.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux