Re: [1.4rc1] Can't change column type - Mailing list pgadmin-support

From Sim Zacks
Subject Re: [1.4rc1] Can't change column type
Date
Msg-id 349864419.20051106105451@compulab.co.il
Whole thread Raw
In response to Re: [1.4rc1] Can't change column type  (Chris <chris.velevitch@gmail.com>)
List pgadmin-support
I get a lot of benefit out of PGAdmin without that functionality.
It's actually a database limitation, not a PGAdmin limitation.

However, if your main database activity is changing the data type of a
column in ways that are disallowed by PostGreSQL, then you are
correct. PGAdmin is pointless.

Sim Zacks
CIO
CompuLab
04-829-0145 - Office
04-832-5251 - Fax

________________________________________________________________________________

Joost Kraaijeveld <J.Kraaijeveld <at> Askesis.nl> writes:
> Does this work (replace the names according to your schema)?
> 
> BEGIN;
> ALTER TABLE table_name ADD COLUMN new_column varchar(64)?;
> UPDATE table_name SET new_column = column;
> ALTER TABLE customer RENAME column TO old_column;
> ALTER TABLE customer RENAME new_column TO columns;
> COMMIT;

In the end, I did this plu I dropped the old column, but what's the point of
having a tool like pgAdmin if common place everyday activities like this can't
be done?




---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate      subscribe-nomail command to
majordomo@postgresql.orgso that your      message can get through to the mailing list cleanly
 



pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: [1.4rc1] Can't change column type
Next
From: "Dave Page"
Date:
Subject: pgAdmin v1.4.0 Released