Re: Error with DROP column - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: Error with DROP column
Date
Msg-id 3F9D76A6.9090506@klaster.net
Whole thread Raw
In response to Error with DROP column  (mohan@physics.gmu.edu)
List pgsql-sql
Dnia 2003-10-27 20:35, Użytkownik mohan@physics.gmu.edu napisał:
> Hi All i am trying to DROP the column but i keep getting this error.
> 
>  ALTER TABLE institution DROP COLUMN name CASCADE;
> ERROR:  ALTER TABLE / DROP COLUMN is not implemented
> 
> please help me in solving this issue.

Looks like Postgresql older than 7.x (7.3?)

You can't drop column this way. In older versions you can do this only by:
create table temp (columns as you wish to have)
insert into temp select * from old_table
drop old_table
alter table temp rename to old_table

Regards,
Tomasz Myrta



pgsql-sql by date:

Previous
From: mohan@physics.gmu.edu
Date:
Subject: Error with DROP column
Next
From: Devrim GUNDUZ
Date:
Subject: Re: Error with DROP column