Re: no drop column?! - Mailing list pgsql-admin

From Jyry Kuukkanen
Subject Re: no drop column?!
Date
Msg-id Pine.LNX.4.33L0.0203250904230.5043-100000@cyclone.neutech.fi
Whole thread Raw
In response to no drop column?!  (Lucas Rockwell <lr@socrates.Berkeley.EDU>)
List pgsql-admin
On Sun, 24 Mar 2002, Lucas Rockwell wrote:

> bavc=> alter table staff drop column date_created cascade;
> ERROR:  ALTER TABLE / DROP COLUMN is not implemented
>
> is this true???!!! i am using PostgreSQL 7.2.
>
> -lucas


Hello lucas

Yes, it is true -- with Pgsql 7.3, too.

There is a way to get around it, however, but requires creating temp
table, selecting, inserting and renaming back to original name. The php
user's guide explains this in detail.

But there is an easier way to do this, once you heve installed phpPgAdmin
(http://phppgadmin.sourceforge.net). phpPgAdmin automates the procedure to
create/select/insert/rename to one click.


--jq


--Jyry
C:-(    C:-/    C========8-O    C8-/    C:-(


pgsql-admin by date:

Previous
From: Lucas Rockwell
Date:
Subject: no drop column?!
Next
From: Ariunbold Gerelt-Od
Date:
Subject: Group By Time Stamp