pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: John K. Herreshoff <jkherr@centurytel.net>
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:13:57 -0500 (EST)
Message-ID: <200310281913.h9SJDvN28840@candle.pha.pa.us> (raw)
In-Reply-To: <200310281404.57984.jkherr@centurytel.net>

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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (16+ messages)  latest in thread

Message-ID: <200310281913.h9SJDvN28840@candle.pha.pa.us>
Permalink:  ../200310281913.h9SJDvN28840@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200310281913.h9SJDvN28840@candle.pha.pa.us

 · 

reply

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: pgman@candle.pha.pa.us, jkherr@centurytel.net, sszabo@megazone.bigpanda.com, threshar@torgo.978.org
  Subject: Re: Adding foreign key performance
  In-Reply-To: <200310281913.h9SJDvN28840@candle.pha.pa.us>

* 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