Re: Making a varchar bigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Derik Barclay <dbarclay(at)givex(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Making a varchar bigger
Date: 2004-12-31 04:03:37
Message-ID: 1432.1104465817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-12-31 04:14:20 Re: ISO_8859_8 encoding
Previous Message Jason Tesser 2004-12-31 03:30:21 pgodbc error