Re: Making a varchar bigger - Mailing list pgsql-general

From Tom Lane
Subject Re: Making a varchar bigger
Date
Msg-id 1432.1104465817@sss.pgh.pa.us
Whole thread Raw
In response to Re: Making a varchar bigger  (Derik Barclay <dbarclay@givex.com>)
Responses Re: Making a varchar bigger
List pgsql-general
Derik Barclay <dbarclay@givex.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

pgsql-general by date:

Previous
From: "Jason Tesser"
Date:
Subject: pgodbc error
Next
From: Tom Lane
Date:
Subject: Re: ISO_8859_8 encoding