Re: Altering a column type - Most efficient way

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Altering a column type - Most efficient way
Дата
Msg-id 20080711134423.GA4110@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Altering a column type - Most efficient way  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: Altering a column type - Most efficient way
Список pgsql-performance
Ow Mun Heng wrote:

> If it were this simple a change, I'm not certain why (I believe) PG is
> checking each and every row to see if it will fit into the new column
> definition/type.

Because the code that does the ALTER TYPE is very generic, and it
doesn't (yet) have an optimization that tells it to skip the check and
the possible table rewrite in the cases where it's obviously not needed
(like this one).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Jeff
Дата:
Сообщение: 3ware vs Areca
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: 3ware vs Areca