From: John K. Herreshoff <jkherr@centurytel.net>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Jeff <threshar@torgo.978.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Adding foreign key performance
Date: Tue, 28 Oct 2003 14:04:57 -0500
Message-ID: <200310281404.57984.jkherr@centurytel.net> (raw)
In-Reply-To: <200310281834.h9SIYFB25030@candle.pha.pa.us>
References: <200310281834.h9SIYFB25030@candle.pha.pa.us>
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).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jkherr@centurytel.net, pgman@candle.pha.pa.us, sszabo@megazone.bigpanda.com, threshar@torgo.978.org
Subject: Re: Adding foreign key performance
In-Reply-To: <200310281404.57984.jkherr@centurytel.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox