Re: Q: explain on delete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Q: explain on delete
Дата
Msg-id 8560.1044309677@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Q: explain on delete  (Tilo Schwarz <mail@tilo-schwarz.de>)
Ответы Re: Q: explain on delete  (Andrew Sullivan <andrew@libertyrms.info>)
Список pgsql-general
Tilo Schwarz <mail@tilo-schwarz.de> writes:
> So my question is: Is there another way besides "explain" to get information
> out of postgresql (7.3.1) what's going on during a "delete" on a table with
> many foreign key triggers .

IIRC, you can set log_statement=on before the first time you run the
DELETE in a given session, and then look in the postmaster log for
copies of the SQL statements that are generated by the foreign key
mechanism.  It's not great, particularly because you can't conveniently
see the associated plans, but it's better than nothing ...

            regards, tom lane

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

Предыдущее
От: "Patric Bechtel"
Дата:
Сообщение: Re: 335 times faster (!) [Viruschecked] [Viruschecked]
Следующее
От: Neil Conway
Дата:
Сообщение: Re: 335 times faster (!)