RE: Alter column length - Mailing list pgsql-general

From Tamsin
Subject RE: Alter column length
Date
Msg-id NEBBKHBOBMJCHDMGKCNJCEHOCLAA.tg_mail@bryncadfan.co.uk
Whole thread Raw
In response to Alter column length  ("Dan Wilson" <phpPgAdmin@acucore.com>)
List pgsql-general
I've used that method without any problems.  I had to experiment a bit by
creating test tables with different length columns to see what to set
atttypmod to, because I didn't really know what the value meant!  Seemed to
work ok though...
Tamsin

>
> -----------------------------
> update pg_attribute set atttypmod = [column_oid] where attname =
> '[column_name]' where attrelid = (select oid from pg_class where relname =
> '[table_name]');
> -----------------------------
>
> Will doing this cause any problems?
>
> -Dan
>


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Slow SELECT...IN statements
Next
From: Michael Fork
Date:
Subject: Re: internationalizing text