| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Eric Scott | 2004-12-31 14:45:34 | Can't change password? |
| Previous Message | Clodoaldo Pinto | 2004-12-31 11:59:32 | Re: Postgresql website issues. |