9.1 - rewrite less alter table?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: 9.1 - rewrite less alter table?
Date: 2011-03-05 11:55:18
Message-ID: 20110305115518.GA9949@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ray 2011-03-05 15:38:23 Re: updating all records of a table
Previous Message Craig Ringer 2011-03-05 06:52:06 Re: invalid byte sequence