X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 53074D1B536 for ; Mon, 27 Oct 2003 19:49:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 17664-02 for ; Mon, 27 Oct 2003 15:48:44 -0400 (AST) Received: from serwer.skawsoft.com.pl (rtr.skawina.eu.org [80.48.213.10]) by svr1.postgresql.org (Postfix) with ESMTP id 506DED1B4EB for ; Mon, 27 Oct 2003 15:48:42 -0400 (AST) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 78CB32B3CB; Mon, 27 Oct 2003 20:48:18 +0100 (CET) Message-ID: <3F9D76A6.9090506@klaster.net> Date: Mon, 27 Oct 2003 20:48:54 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5) Gecko/20030916 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: mohan@physics.gmu.edu Cc: pgsql-sql@postgresql.org Subject: Re: Error with DROP column References: <62967.138.88.163.115.1067283344.squirrel@physics.gmu.edu> In-Reply-To: <62967.138.88.163.115.1067283344.squirrel@physics.gmu.edu> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/350 X-Sequence-Number: 15750 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