From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bret Hughes <bhughes@elevating.com>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: trigger/for key help
Date: Sun, 11 Apr 2004 18:00:13 -0400
Message-ID: <17189.1081720813@sss.pgh.pa.us> (raw)
In-Reply-To: <1081711155.6399.165.camel@bretsony>
References: <1081662204.6609.72.camel@bretsony>
<20040411080932.Q83278@megazone.bigpanda.com>
<1081711155.6399.165.camel@bretsony>
Bret Hughes <bhughes@elevating.com> writes:
> elevating=# drop table test_types;
> ERROR: could not find tuple for constraint 2041971
> I can find no reference to these oids anywhere.
You haven't looked very hard then ;-). I expect this is because
pg_depend has links from the table to the constraints it owns.
You could probably remove the pg_depend entries to make it possible
to drop the table.
Use ALTER TABLE next time, eh? Hand manipulation of the system catalogs
is *not* for those who don't know exactly what they are doing.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, bhughes@elevating.com, sszabo@megazone.bigpanda.com
Subject: Re: trigger/for key help
In-Reply-To: <17189.1081720813@sss.pgh.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