Re: How to alter the size of a column - Mailing list pgsql-general

From Chris Bitmead
Subject Re: How to alter the size of a column
Date
Msg-id 3986504B.94A4B03B@nimrod.itg.telecom.com.au
Whole thread Raw
In response to Re: How to alter the size of a column  (Michael Talbot-Wilson <mtw@birdseye.view.net.au>)
List pgsql-general
Michael Talbot-Wilson wrote:
>
> >      I want to alter the size of a column, say from char(40) to char(80),
> > but it seem that
> > the  ALTER does not support such operation, nor does it support column
> > removing.
> >
> >      How can I do for this ?
>
> I would also like to know how to do both of these things.

I'm not aware of an easy way of doing it. But you can dump your schema
and data separately. Manually edit your schema. Reload the schema then
reload the data.

pgsql-general by date:

Previous
From: Michael Talbot-Wilson
Date:
Subject: Re: How to alter the size of a column
Next
From: brianb-pggeneral@edsamail.com
Date:
Subject: Re: [HACKERS] pg_dump & performance degradation