Re: BUG #1398: Delete takes a long time & explain disagrees with \timing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1398: Delete takes a long time & explain disagrees with \timing
Дата
Msg-id 23535.1105715495@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1398: Delete takes a long time & explain disagrees with \timing  ("Karl Martindale" <karl@cyber.com.au>)
Список pgsql-bugs
"Karl Martindale" <karl@cyber.com.au> writes:
> Deletes from this particular table take a long time (~5 min for 6000rows)

This usually occurs when you have another table with a foreign key
reference to this one, and the referencing column either has no index or
isn't of the exact same datatype as the referenced column.  The FK
checks then are forced to use sequential scans instead of index probes
:-(

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Bug Report
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: BUG #1388: documentation/announcement suggestion