pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Bayet <bayet@enseirb.fr>
To: pgsql-admin@postgresql.org
Subject: Re: Changing the type of a column ?
Date: Thu, 01 Mar 2001 06:55:05 +0100
Message-ID: <3A9DE439.A54D25DC@enseirb.fr> (raw)
References: <Pine.LNX.4.21.0103011536580.4592-100000@webster.conprojan.com.au>

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.




view thread (3+ messages)

Message-ID: <3A9DE439.A54D25DC@enseirb.fr>
Permalink:  ../3A9DE439.A54D25DC@enseirb.fr/
Also on:    postgresql.org/message-id/3A9DE439.A54D25DC@enseirb.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bayet@enseirb.fr
  Subject: Re: Changing the type of a column ?
  In-Reply-To: <3A9DE439.A54D25DC@enseirb.fr>
  References: <Pine.LNX.4.21.0103011536580.4592-100000@webster.conprojan.com.au> <3A9DE439.A54D25DC@enseirb.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox