Re: recreating table and foreign keys

From: "Tomasz Myrta" <jasiek(at)klaster(dot)net>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: recreating table and foreign keys
Date: 2002-12-03 12:29:54
Message-ID: 20021203202954.M11351@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> You'll probably end up using ALTER TABLE ADD CONSTRAINT to add the
> constraints to the new master_table. It's possible that you might
> be able to hack something with the system tables, but that sounds
> dangerous. Or you can upgrade to 7.3 which lets you run alter table
> drop column. :)
If it is the only way, I can create >20 "alter table add constraint...", but
is rather a boring finish :-(
I found, I can dump database - data only. After this I can create all tables
and restore data.

Any other solution?
Tomasz Myrta

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pedro Igor 2002-12-03 12:43:19 SQL QUERY
Previous Message Thrasher 2002-12-03 09:30:05 Re: Date trunc in UTC