X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 20F06D1B54C for ; Tue, 28 Oct 2003 19:10:17 +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 45075-10 for ; Tue, 28 Oct 2003 15:09:46 -0400 (AST) Received: from granger.centurytel.net (granger.centurytel.net [209.142.136.117]) by svr1.postgresql.org (Postfix) with ESMTP id 02BBCD1B52F for ; Tue, 28 Oct 2003 15:09:45 -0400 (AST) Received: from 192.168.1.3 (pppoe0511.grp.centurytel.net [64.91.27.4]) by granger.centurytel.net (8.12.10/8.12.10) with ESMTP id h9SJ97Hj011004; Tue, 28 Oct 2003 13:09:12 -0600 (CST) From: "John K. Herreshoff" To: Bruce Momjian Subject: Re: Adding foreign key performance Date: Tue, 28 Oct 2003 14:04:57 -0500 User-Agent: KMail/1.5 Cc: Stephan Szabo , Jeff , pgsql-performance@postgresql.org References: <200310281834.h9SIYFB25030@candle.pha.pa.us> In-Reply-To: <200310281834.h9SIYFB25030@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310281404.57984.jkherr@centurytel.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/714 X-Sequence-Number: 4462 That did not take long... about 13 minutes to reload the tables from an *.mdb file, and a second or two for each of the 'alter table foo add foreign key...' lines. I tried to drop a 'referencing' table, and the database would not let me, said that something depended on it ;o) Is there some way to name the foreign key so that it can be dropped later, or is there a way to drop the foreign key using information already in the database? John. On Tuesday 28 October 2003 13:34, Bruce Momjian wrote: > John K. Herreshoff wrote: > > FWIW: I'm fiddling with that right now, and the FK think was quick... a > > few seconds... the tables in question have 1400 records, 343000 records > > and 7200 records... I'm running Beta5... > > Did those tables have analyze statistics? Can you try it without > statistics (I think you have to drop the tables to erase the > statistics).