From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "John K(dot) Herreshoff" <jkherr(at)centurytel(dot)net> |
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:13:57 |
Message-ID: | 200310281913.h9SJDvN28840@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
John K. Herreshoff wrote:
> 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?
You have to use ALTER TABLE DROP CONSTRAINT perhaps.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Vivek Khera | 2003-10-28 19:18:02 | Re: Very Poor Insert Performance |
Previous Message | John K. Herreshoff | 2003-10-28 19:04:57 | Re: Adding foreign key performance |