Re: can't delete because of constraint from zombie table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: can't delete because of constraint from zombie table
Дата
Msg-id 21404.1163801169@sss.pgh.pa.us
обсуждение исходный текст
Ответ на can't delete because of constraint from zombie table  (Jaime Silvela <JSilvela@Bear.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Shutting down a warm standby database in 8.2beta3
Следующее
От: "Matt Miller"
Дата:
Сообщение: Allowing SYSDATE to Work