Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 57200475D1F for ; Thu, 7 Mar 2002 11:57:07 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 7F99AD5FD; Thu, 7 Mar 2002 08:57:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 750E65BFC; Thu, 7 Mar 2002 08:57:08 -0800 (PST) Date: Thu, 7 Mar 2002 08:57:08 -0800 (PST) From: Stephan Szabo To: Joel Mc Graw Cc: Subject: Re: Dropped table screws referential integrity? In-Reply-To: Message-ID: <20020307085622.Y77313-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200203/99 X-Sequence-Number: 3633 On Thu, 7 Mar 2002, Joel Mc Graw wrote: > I had a table (job_documents) that referenced another (jobs). I no > longer needed job_documents, so I dropped it. Now, any attempt to > delete rows from jobs fails--it complains that job_documents doesn't > exist. Is there a way to fix this? You'll need to find the two triggers on jobs that reference job_documents (do a select * from pg_trigger and look at the argument list to find them) and drop them and you should be fine.