Re: Deleting row in 7.4 takes for ever

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deleting row in 7.4 takes for ever
Дата
Msg-id 18651.1207955566@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Deleting row in 7.4 takes for ever  ("Bharat Patel" <bharatpatelk@gmail.com>)
Список pgsql-general
"Bharat Patel" <bharatpatelk@gmail.com> writes:
> I have a table that has 5.4 million rows of data in it.  4.6 million of
> these rows are just administrative messages and not necessary so I'd like to
> delete them.  If I try and delete them, it takes 69 minutes to delete ~650K
> rows.

I'm betting on an unindexed foreign-key constraint linking to this
table.

            regards, tom lane

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

Предыдущее
От: "Bharat Patel"
Дата:
Сообщение: Deleting row in 7.4 takes for ever
Следующее
От: Reece Hart
Дата:
Сообщение: Re: tsearch2 and hyphenated terms