| От | Tom Lane |
|---|---|
| Тема | Re: Help understand why DELETE is so slow |
| Дата | |
| Msg-id | 823512.1701736987@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Help understand why DELETE is so slow (Ping Yao <ping@optigo.net>) |
| Список | pgsql-general |
Ping Yao <ping@optigo.net> writes:
> Thank you for the comment. I think we do. What I found odd here is the
> Query Plan (with analyze) clearly shows the actual execution to be very
> quick, that's why I don't think it's an index problem. What do you think?
I wouldn't rule it out on that basis. Foreign key enforcement is done
by AFTER triggers, which are not part of the query plan. Having said
that, all modern versions of PG show trigger runtime as a separate
EXPLAIN output line, so slow FK checks aren't that hard to diagnose.
I agree with the other comments that this is likely a Citus-specific
issue, and that you came to the wrong place for expertise on that.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера