Re: Slow update - index problem?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow update - index problem?
Дата
Msg-id 15248.1045844231@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Slow update - index problem?  (Christopher Murtagh <christopher.murtagh@mcgill.ca>)
Ответы Re: Slow update - index problem?
Список pgsql-general
Christopher Murtagh <christopher.murtagh@mcgill.ca> writes:
>  The table has 19867 records, and this query takes over 20 minutes. When I
> export the data to a new DB, with the same table (no indexes) it takes
> about 3 seconds.

It kinda sounds like you've done a whole lot of updating and never
vacuumed this table.  What does 'VACUUM FULL VERBOSE ind' tell you?

>  Any ideas? Would *removing* indexes make it faster?

Yes, but I doubt that it's the indexes that are the bulk of the problem.

            regards, tom lane

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

Предыдущее
От: Eric B.Ridge
Дата:
Сообщение: Re: Fwd: REWRITE_INVOKE_MAX and "query may contain cycles"
Следующее
От: Christopher Murtagh
Дата:
Сообщение: Re: Slow update - index problem?