Re: Really strange foreign key constraint problem blocking delete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Really strange foreign key constraint problem blocking delete
Дата
Msg-id 22260.1412689525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Really strange foreign key constraint problem blocking delete  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> SET enable_indexscan=off;

> EXPLAIN ANALYZE DELETE  query

> SET enable_indexscan=on;

Note that you'd probably best do this in a fresh session, since the
supposed problem is being tickled by a foreign-key check.  I think
the plans for those get cached, so if you'd already tried the same
case earlier in the session, changing enable_indexscan wouldn't
change the plan used.

            regards, tom lane


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

Предыдущее
От: Emanuel Calvo
Дата:
Сообщение: Re: Processor usage/tuning question
Следующее
От: Marc Mamin
Дата:
Сообщение: Re: faster way to calculate top "tags" for a "resource" based on a column