Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Re: BUG #4689: Expanding the length of a VARCHAR column should not induce a table rewrite

From: Matteo Beccati <php(at)beccati(dot)com>
To: Guillaume Smet <guillaume(dot)smet(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, xuan--2009(dot)03--submitbug--support--postgresql(dot)org(at)baldauf(dot)org, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: BUG #4689: Expanding the length of a VARCHAR column should not induce a table rewrite
Date: 2009-03-05 15:47:30
Message-ID: 49AFF412.7030506@beccati.com (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Guillaume Smet ha scritto:
> On Wed, Mar 4, 2009 at 11:50 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>> The question is how you want to implement this in a data type independent
>> fashion.  You can't assume that increasing the typmod is a noop for all data
>> types.
> 
> Sure. See my previous answer on -hackers (I don't think this
> discussion belong to -bugs) and especially the discussion in the
> archives about Jonas' patch.

I recently had a similar problem when I added some domains to the
application. ALTER TABLE ... TYPE varchar_dom was leading to a full
table rewrite even though the underlying type definition were exactly
the same (i.e. varchar(64)). I can live with it, but I suppose this fix
might be related to the varlen one.


Cheers

-- 
Matteo Beccati

OpenX - http://www.openx.org

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2009-03-05 15:54:33
Subject: Re: [BUG] Column-level privileges on inherited tables
Previous:From: Teodor SigaevDate: 2009-03-05 15:26:48
Subject: Re: Review: B-Tree emulation for GIN

pgsql-bugs by date

Next:From: Kevin GrittnerDate: 2009-03-05 19:15:26
Subject: Re: Expanding the length of a VARCHAR column should not inducea table rewrite
Previous:From: Anamika SainiDate: 2009-03-05 10:33:37
Subject: Problem in installing postgreSQL in silent mode

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group