Search Postgresql Archives

Re: alter table type from double precision to real

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

 



On Monday 25 June 2007 03:35, ssoo@xxxxxxxxxxxxxxx wrote:
> Michael Fuhr <mike@xxxxxxxx> wrote:
> > Altering a column's type rewrites the table so vacuuming afterward
> > shouldn't be necessary.
>
> I'm gonna alter another table type from double precision to real.
> This table size is lager than disk free space.
> Can it be possible?
> Previsouly, I saw continuous increasing in disk usage until
> alter complete.
> I'm afraid of disk full and aftereffects.

Correct, modifying table data types requires a table re-write, so you're 
likely to run out of space.  You're not too likely to have much trouble by 
trying, when you run out of disk space the transaction will roll back and you 
should be ok.  One method to try and get around this might be to drop and 
then recreate relevant indexes (thereby freeing up space ahead of time) 
though you'll need to commit between those commands. HTH

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL


[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