Re: Can one alter the format of a numeric column? - Mailing list pgsql-general

From Chris Green
Subject Re: Can one alter the format of a numeric column?
Date
Msg-id 20041127184931.GB9899@areti.co.uk
Whole thread Raw
In response to Re: Can one alter the format of a numeric column?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
On Sat, Nov 27, 2004 at 10:50:47AM -0700, Michael Fuhr wrote:
> On Sat, Nov 27, 2004 at 05:29:42PM +0000, Chris Green wrote:
>
> > Can one alter the precision of a numeric column?
> >
> > I want to reduce the precision of a column from 20,4 to 20,2.
>
> In PostgreSQL 8.0 (currently in beta) you can use ALTER TABLE
> to alter a column's type.  For previous versions see the FAQ:
>
> http://www.postgresql.org/docs/faqs/FAQ.html#4.4
>
OK, thanks.  That means I need to dump the data and re-import it.
Or, no, I can use an UPDATE to do it I guess.

--
Chris Green (chris@areti.co.uk)

    "Never ascribe to malice, that which can be explained by incompetence."

pgsql-general by date:

Previous
From: Eric E
Date:
Subject: ODBC driver troubles
Next
From: Alvaro Herrera
Date:
Subject: Re: row-level deadlock problem