Re: EXPLAIN and FK references?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: EXPLAIN and FK references?
Дата
Msg-id 899474.1673503646@sss.pgh.pa.us
обсуждение исходный текст
Ответ на EXPLAIN and FK references?  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: EXPLAIN and FK references?  (Christophe Pettus <xof@thebuild.com>)
Re: EXPLAIN and FK references?  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> Deletes are slow in one table with many indices and FK references. That's 
> not surprising, but it's *VERY* slow, and I'm trying to figure out why.

> Is there any EXPLAIN option which shows what "query plans" Pg is using when 
> checking FK references (index scan, seq scan, etc) during deletes (and 
> inserts and updates)?

No, not directly, but you could look at EXPLAIN ANALYZE to see which
of the RI triggers is eating the time.  It's not going to be hard to
figure out which one(s) are using indexed plans and which are not.

            regards, tom lane



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

Предыдущее
От: Ron
Дата:
Сообщение: EXPLAIN and FK references?
Следующее
От: Christophe Pettus
Дата:
Сообщение: Re: EXPLAIN and FK references?