Alter table alter column

From: Marc Munro <marc(at)bloodnok(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Alter table alter column
Date: 2006-10-06 20:15:59
Message-ID: 1160165759.12385.41.camel@bloodnok.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am I right in thinking that altering a column from varchar(n) to
varchar(n+m) requires each tuple to be visited?

Recent experience suggests this is the case but my reading of the docs
has left me uncertain why this should be so. We are not changing the
fundamental type of the column, nor are we attempting an operation that
will fail due to existing data being incompatible with the new
definition.

Is there some fundamental reason why placing a higher limit on the
length of existing data cannot be done solely by changing the system
catalogs? Is this an optimisation that could be added to the TODO list?

__
Marc

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Casey Duncan 2006-10-06 20:16:55 Re: how to get number of minutes?
Previous Message Worky Workerson 2006-10-06 19:23:16 Re: DELETE eats up all memory and crashes box