where's ALTER TABLE table DROP [ COLUMN ] column???

From: bboett(at)erm1(dot)u-strasbg(dot)fr (Bruno Boettcher)
To: pgsql-sql(at)postgresql(dot)org
Subject: where's ALTER TABLE table DROP [ COLUMN ] column???
Date: 2001-05-23 22:49:06
Message-ID: 20010524004906.K12080@erm1.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello!

just trying to write an upgrade script for my bookkeeping system.... and
noticed that it seems that i can't throw out the legacy stuff
accumulated over time....

as far as i can tell, i can add columns to a table, but can't remove
them later on.....

is this true? any easy way to circumvent this inside the DB, without
destroying the existing tables (the problem: make backup f the existing
table, without the offending column, drop the table, recreate it, feed
it with the backup) if someone has any solution for this, i am taker!

--
ciao bboett
==============================================================
bboett(at)earthling(dot)net
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alexander Dederer 2001-05-23 23:19:44 Re: Return cursor
Previous Message Tom Lane 2001-05-23 21:57:19 Re: Error msg.