Re: Troubleshooting SPI_execp() failed in RI_FKey_cascade_del()

Поиск
Список
Период
Сортировка
От Joshua b. Jore
Тема Re: Troubleshooting SPI_execp() failed in RI_FKey_cascade_del()
Дата
Msg-id Pine.BSO.4.44.0206121852190.10009-100000@kitten.greentechnologist.org
обсуждение исходный текст
Ответ на Troubleshooting SPI_execp() failed in RI_FKey_cascade_del()  ("Joshua b. Jore" <josh@greentechnologist.org>)
Ответы Re: Troubleshooting SPI_execp() failed in RI_FKey_cascade_del()  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
The following sql demonstrates the problem. What I'm getting at here is
cases where the rows in "b" are being altered instead of being deleted
consequently the delete to "a" shouldn't happen.

create table a (id int4 primary key);
create table b (id int4 references a on delete cascade);
create rule b0 as on delete to b do instead nothing;

insert into a values (1);
insert into b values (1);
delete from a;

Joshua b. Jore ; http://www.greentechnologist.org

On Wed, 12 Jun 2002, Joshua b. Jore wrote:

> I found the function in src/backend/utils/adt/ri_triggers.c. A previous
> note in the archives says it might be an invalid SPI command/statement. So
> how do I debug that? Which traces ought to be turned on?
>
> Joshua b. Jore ; http://www.greentechnologist.org
>
>


В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Troubleshooting SPI_execp() failed in RI_FKey_cascade_del()
Следующее
От: Ken Williams
Дата:
Сообщение: Re: automatic time zone conversion