9.1 - rewrite less alter table? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject 9.1 - rewrite less alter table?
Date
Msg-id 20110305115518.GA9949@depesz.com
Whole thread Raw
Responses Re: 9.1 - rewrite less alter table?  (Noah Misch <noah@leadboat.com>)
List 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 by date:

Previous
From: Craig Ringer
Date:
Subject: Re: invalid byte sequence
Next
From: ray
Date:
Subject: Re: updating all records of a table