when is a DELETE FK trigger planned?

Поиск
Список
Период
Сортировка
От Andrew Lazarus
Тема when is a DELETE FK trigger planned?
Дата
Msg-id 010161370.20080225125626@pillette.com
обсуждение исходный текст
Ответы Re: when is a DELETE FK trigger planned?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
I have a cascading delete trigger that is obviously using a seqscan.
(Explain analyze shows that trigger as taking over 1000s while all
other triggers are <1s. The value in test delete didn't even appear in
this child table, so an index scan would have been almost instant.)

If I do
DELETE FROM child_table WHERE fkey = value;
I get an index scan. Why doesn't the trigger do that, and how can I
force it to re-plan?


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

Предыдущее
От: Joel Stevenson
Дата:
Сообщение: Re: LISTEN / NOTIFY performance in 8.3
Следующее
От: "Stephen Denne"
Дата:
Сообщение: Re: Weird issue with planner choosing seq scan