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

Re: Making a varchar bigger

From: Derik Barclay <dbarclay(at)givex(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making a varchar bigger
Date: 2004-12-31 13:38:27
Message-ID: 200412310838.28196.dbarclay@givex.com (view raw or flat)
Thread:
Lists: pgsql-general
It is combined with another field to form an index.
Does that mean a re-indexing will be required? or are there other issues?

On December 30, 2004 11:03 pm, Tom Lane wrote:
> Derik Barclay <dbarclay(at)givex(dot)com> writes:
> > Specificaly I am looking at executing something like this:
> > UPDATE pg_attribute SET atttypmod = 16 where attname = 'x' AND attrelid =
> > (select pg_class.oid from pg_class where relname = 'mytable');
>
> If you have any indexes or views referencing this column, then it's a
> bit harder.  But for the table itself I believe that will work.
>
>    regards, tom lane

-- 
Givex - http://www.givex.com/
Derik Barclay <dbarclay(at)givex(dot)com>, Systems Software Engineer
+1 416 350 9660
+1 416 250 9661 (fax)

In response to

Responses

pgsql-general by date

Next:From: Eric ScottDate: 2004-12-31 14:45:34
Subject: Can't change password?
Previous:From: Clodoaldo PintoDate: 2004-12-31 11:59:32
Subject: Re: Postgresql website issues.

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