RE: Alter column length

From: "Tamsin" <tg_mail(at)bryncadfan(dot)co(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: RE: Alter column length
Date: 2001-03-23 17:34:34
Message-ID: NEBBKHBOBMJCHDMGKCNJCEHOCLAA.tg_mail@bryncadfan.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bpalmer 2001-03-23 17:38:16 Re: Re: Call for platforms
Previous Message Gregory Wood 2001-03-23 17:23:35 Re: Re: Rules, views, sequences and returned values