Received: from neouvielle.enseirb.fr (neouvielle.enseirb.fr [147.210.18.138]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f215aFx68504 for ; Thu, 1 Mar 2001 00:36:16 -0500 (EST) (envelope-from bayet@enseirb.fr) Received: from enseirb.fr (bayet.mds [172.16.8.139]) by neouvielle.enseirb.fr (8.9.3/8.9.3) with ESMTP id GAA22967 for ; Thu, 1 Mar 2001 06:34:35 +0100 (MET) Message-ID: <3A9DE439.A54D25DC@enseirb.fr> Date: Thu, 01 Mar 2001 06:55:05 +0100 From: Richard Bayet X-Mailer: Mozilla 4.7 [fr] (Win98; I) X-Accept-Language: fr MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Changing the type of a column ? References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id f215aHx68505 X-Archive-Number: 200103/2 X-Sequence-Number: 846 Thanks, I finally found that ALTER TABLE didn't permit any kind of type change... Grant a écrit : > > Is it possible to directly change the type of a column (eg: from int4 to > > date) or does one have to first add a column of the desired type, copy > > the first column's content, then drop this first column ? > > No it's not possible. Your solution is correct.