Re: Why table has drop, but the foreign key still there?

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Raymond Chui <raymond(dot)chui(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: Why table has drop, but the foreign key still there?
Date: 2003-08-13 19:54:19
Message-ID: 1060804459.11688.80.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-sql

> insert into state (state_code,state) values ('GU','Guam');
> drop table whitepage;
> delete from state where state_code = 'GU';
> ERROR: Relation "whitepage" does not exist

Old version of PostgreSQL? Effort went into cleaning up inter-object
dependencies in 7.3. I don't recall having that particular issue in
versions prior either.

That said, you can remove the triggers that are on table "state"
beginning with the characters "RI". psql -d state will tell you what
they are.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Murthy Kambhampaty 2003-08-13 22:10:39 Re: Backup procedure
Previous Message Tom Lane 2003-08-13 19:53:03 Re: Why table has drop, but the foreign key still there?

Browse pgsql-general by date

  From Date Subject
Next Message Jason Godden 2003-08-13 20:02:23 Re: The database is very slow !
Previous Message Tom Lane 2003-08-13 19:53:03 Re: Why table has drop, but the foreign key still there?

Browse pgsql-sql by date

  From Date Subject
Next Message Abdul Wahab Dahalan 2003-08-14 02:51:44 Re: How to speeed up the query performance
Previous Message Tom Lane 2003-08-13 19:53:03 Re: Why table has drop, but the foreign key still there?