Re: Adding foreign key performance

From: "John K(dot) Herreshoff" <jkherr(at)centurytel(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>, Jeff <threshar(at)torgo(dot)978(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Adding foreign key performance
Date: 2003-10-28 19:04:57
Message-ID: 200310281404.57984.jkherr@centurytel.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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).

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2003-10-28 19:13:57 Re: Adding foreign key performance
Previous Message Cestmir Hybl 2003-10-28 18:57:24 Ignoring index on (A is null), (A is not null) conditions