Re: Is it safe to increase pg_attribute.atttypmod ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nickf(at)ontko(dot)com
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>, "Ray Ontko" <rayo(at)ontko(dot)com>
Subject: Re: Is it safe to increase pg_attribute.atttypmod ?
Date: 2002-05-21 00:17:15
Message-ID: 16447.1021940235@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Nick Fankhauser" <nickf(at)ontko(dot)com> writes:
> The update to change a varchar(10) field to varchar(40) looked like this:

> update pg_attribute set atttypmod = 44
> where attrelid = ( select oid from pg_class where relname = 'test' )
> and attname = 'oldtest' ;

> Is this a smart thing to do?

Yup, that's the standard hack.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joe Conway 2002-05-21 00:49:03 Re: Is it safe to increase pg_attribute.atttypmod ?
Previous Message Nick Fankhauser 2002-05-20 20:56:42 Is it safe to increase pg_attribute.atttypmod ?