Re: Optimizer failure on update w/integer column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer failure on update w/integer column
Дата
Msg-id 11980.1055716208@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Optimizer failure on update w/integer column  (nolan@celery.tssi.com)
Ответы Re: Optimizer failure on update w/integer column  (nolan@celery.tssi.com)
Список pgsql-general
nolan@celery.tssi.com writes:
> Is there a documented problem with optimizing integer key fields
> in 7.3.3?

I see nothing particularly wrong with that query plan.

> When I try to do an update, it takes several hours.

That seems excessive for a 700K-row update, but I doubt that the query
plan is the problem.  I'm betting there's a lot of per-update overhead
due to triggers or foreign keys.  What have you got in that line?  Do
you have indexes on both sides of any foreign-key relationships that
missing_ids participates in?

            regards, tom lane

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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [HACKERS] UTF8 and KOI8 mini-howto
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why can't you define a table alias on an update?