Fwd: Re: [GENERAL] Howto change column length - Mailing list pgadmin-hackers

From Jean-Michel POURE
Subject Fwd: Re: [GENERAL] Howto change column length
Date
Msg-id 4.2.0.58.20011107152901.00de16e0@pop.freesurf.fr
Whole thread Raw
List pgadmin-hackers
Hello all,

This is a copy from Admin explaining how to change variable lenght:

>If you're willing to do a little magic to the system tables (and you have
>a recent backup :) ).  You can change the atttypmod of the column in
>question from 14 to 24.  This really only works on variable length items
>and only to expand them, but...
>
>You pretty much need to do a sequence like:
>select oid, relname from pg_class where relname='<tablename>';
>update pg_attribute set atttypmod=24 where attrelid=<oid from previous>
>  and attname='<attributename>'
>in a superuser account.

Best regards,
Jean-Michel POURE

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [GENERAL] Use of Serial Datatype and Sequen
Next
From: Dave Page
Date:
Subject: Re: Fwd: Re: [GENERAL] Howto change column leng