Suggested TODO: allow ALTERing of typemods without heap/index rebuild - Mailing list pgsql-hackers

From Josh Berkus
Subject Suggested TODO: allow ALTERing of typemods without heap/index rebuild
Date
Msg-id 4A243990.9090701@agliodbs.com
Whole thread Raw
Responses Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
All,

I just realized that even if you do this:

table foo (id    serial,bar    varchar(200)
)

ALTER TABLE foo ALTER COLUMN bar TYPE VARCHAR(1000)

... it triggers a heap & index rebuild, even though it's completely 
unnecessary.  Is this a special case of VARCHAR, or are there other 
types where we should be allowing typemod changes without rebuilding?

-- 
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: list_head naming conflict gcc 4.2/perl/solaris
Next
From: Tom Lane
Date:
Subject: Re: Suggested TODO: allow ALTERing of typemods without heap/index rebuild