Re: data type change

From: Alberto Bolchini <alberto(at)melloni49(dot)it>
To: postgresql novice <pgsql-novice(at)postgresql(dot)org>
Cc: renzo rizzato <renzorizzato(at)iol(dot)it>
Subject: Re: data type change
Date: 2003-01-06 12:48:16
Message-ID: 20030106124816.GA3122@bebop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Aarni Ruuhimäki 2003-01-06 13:12:09 Fwd: Re: data type change
Previous Message MAASK Group 2003-01-05 13:05:51 use of shared memory