Re: Slow table update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow table update
Дата
Msg-id 7032.1229952622@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow table update  (Laszlo Nagy <gandalf@shopzeus.com>)
Ответы Re: Slow table update  ("Nikolas Everett" <nik9000@gmail.com>)
Re: Slow table update  (Laszlo Nagy <gandalf@shopzeus.com>)
Список pgsql-performance
Laszlo Nagy <gandalf@shopzeus.com> writes:
>> If the table has some sort of FK relations it might be being slowed by
>> the need to check a row meant to be deleted has any children.
>>
> If you look at my SQL, there is only one column to be updated. That
> column has no foreign key constraint.

That was not the question that was asked.

> My other idea was that there are so many indexes on this table, maybe
> the update is slow because of the indexes?

Updating indexes is certainly very far from being free.  How many is
"many"?

            regards, tom lane

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

Предыдущее
От: Laszlo Nagy
Дата:
Сообщение: Re: Slow table update
Следующее
От: Laszlo Nagy
Дата:
Сообщение: Re: [ADMIN] rebellious pg stats collector (reopened case)