9.1 - rewrite less alter table?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема 9.1 - rewrite less alter table?
Дата
Msg-id 20110305115518.GA9949@depesz.com
обсуждение исходный текст
Ответы Re: 9.1 - rewrite less alter table?  (Noah Misch <noah@leadboat.com>)
Список pgsql-general
hi
perhaps I misunderstood something from commits, but I assumed that in
9.1 this operation shouldn't rewrite the table:

CREATE TABLE test ( x varchar(16) );
insert into test select i::text from generate_series(1,1000000) i;
alter table test alter column x set data type varchar(32);

but it does.

In commit log I see information about "binary coercible" (which doesn't
mean much to me) - so I assumed varchars() can work this way.

What am I missing?

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: invalid byte sequence
Следующее
От: ray
Дата:
Сообщение: Re: updating all records of a table