Re: data type change - Mailing list pgsql-novice

From Alberto Bolchini
Subject Re: data type change
Date
Msg-id 20030106124816.GA3122@bebop
Whole thread Raw
In response to data type change  (renzo rizzato <renzorizzato@iol.it>)
List pgsql-novice
<quote who="renzo rizzato">

> does anybody know if any sql instruction exists to allow
> change of a column data type? In my case I need to convert a
> money type into numeric without any success.
AFAIK you cannot in Postgresql. I suggest you recreate the table with the
correct column datatypes (i.e. rename the table, create the new table and
populate it with values from the original table.) Watch out for triggers and
procedures.

Regards,

    Alberto.

pgsql-novice by date:

Previous
From: "MAASK Group"
Date:
Subject: use of shared memory
Next
From: Aarni Ruuhimäki
Date:
Subject: Fwd: Re: data type change