change column data type of a big table

Поиск
Список
Период
Сортировка
От Anibal David Acosta
Тема change column data type of a big table
Дата
Msg-id 001801cd76b9$588438a0$098ca9e0$@devshock.com
обсуждение исходный текст
Ответы Re: change column data type of a big table  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general

I have a very big table, in fact only this table uses approx. 60% space of disk.

The table is an standalone table (no one inherit from this and this is not inherit from another).

I need to change a int column to bigint.

 

But aparentely this alter recreate the table, my problem is the space, there are no space enough in disk.

 

Is possible to change column datatype without recreating the table?

 

Thanks!

В списке pgsql-general по дате отправления:

Предыдущее
От: Mike Blackwell
Дата:
Сообщение: Re: Revoking table & function creation privileges
Следующее
От: John R Pierce
Дата:
Сообщение: Re: change column data type of a big table