Re: Plans for ON DELETE CASCADE? Which index is used, if at all?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Plans for ON DELETE CASCADE? Which index is used, if at all? |
| Дата | |
| Msg-id | 3463921.1680009811@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Plans for ON DELETE CASCADE? Which index is used, if at all? (Dominique Devienne <ddevienne@gmail.com>) |
| Ответы |
Re: Plans for ON DELETE CASCADE? Which index is used, if at all?
|
| Список | pgsql-general |
Dominique Devienne <ddevienne@gmail.com> writes:
> Hi. Given the classical parent/child schema below, with an ON DELETE
> CASCADE FK constraint, I'd like to know which index is used (if any) to
> delete child rows affected by the CASCADE.
> But explain (analyze) does not give me that.
Yeah, it will just report the time spent in the FK triggers,
not what they were doing exactly.
IIRC, you can see the CASCADE operations with contrib/auto_explain,
if you enable auto_explain.log_nested_statements.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера