Re: can't delete because of constraint from zombie table - Mailing list pgsql-general

From Tom Lane
Subject Re: can't delete because of constraint from zombie table
Date
Msg-id 21404.1163801169@sss.pgh.pa.us
Whole thread Raw
In response to can't delete because of constraint from zombie table  (Jaime Silvela <JSilvela@Bear.com>)
List pgsql-general
Jaime Silvela <JSilvela@Bear.com> writes:
> I do
> delete from staging_deal where staging_deal_id = 1
> and get
> ERROR:  update or delete on "staging_deal" violates foreign key
> constraint "staging_deal_fkey" on "staging_document"
> DETAIL:  Key (staging_deal_id)=(1) is still referenced from table
> "staging_document".

> I try to find that table
> select * from staging_document
> but
> ERROR:  relation "staging_document" does not exist

Sounds to me like "staging_document" is in a schema that is not in your
search path?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Shutting down a warm standby database in 8.2beta3
Next
From: "Matt Miller"
Date:
Subject: Allowing SYSDATE to Work