From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Joel Mc Graw <jmcgraw@databill.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dropped table screws referential integrity?
Date: Thu, 7 Mar 2002 08:57:08 -0800 (PST)
Message-ID: <20020307085622.Y77313-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <TradeClient.0.9.0.FreeBSD-4.2-RELEASE.0203070756222A.71014@jmcgraw.databill.com>
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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, jmcgraw@databill.com
Subject: Re: Dropped table screws referential integrity?
In-Reply-To: <20020307085622.Y77313-100000@megazone23.bigpanda.com>
References: <TradeClient.0.9.0.FreeBSD-4.2-RELEASE.0203070756222A.71014@jmcgraw.databill.com> <20020307085622.Y77313-100000@megazone23.bigpanda.com>
* 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