Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8F0384763A7 for ; Tue, 3 Dec 2002 14:54:04 -0500 (EST) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by postgresql.org (Postfix) with ESMTP id 6162F4769AE for ; Tue, 3 Dec 2002 14:43:43 -0500 (EST) Received: from lamer.pl (localhost [127.0.0.1]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 870922B25B; Tue, 3 Dec 2002 20:29:54 +0100 (CET) From: "Tomasz Myrta" To: Stephan Szabo , Tomasz Myrta Cc: Subject: Re: recreating table and foreign keys Date: Tue, 3 Dec 2002 20:29:54 +0800 Message-Id: <20021203202954.M11351@klaster.net> In-Reply-To: <20021203082926.W71171-100000@megazone23.bigpanda.com> References: <20021203170324.M63387@klaster.net> <20021203082926.W71171-100000@megazone23.bigpanda.com> X-Mailer: Open WebMail 1.62 20020221 X-OriginatingIP: 217.96.97.138 (jasiek) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/42 X-Sequence-Number: 10630 > 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