Re: [HACKERS] strange behavior of UPDATE

Поиск
Список
Период
Сортировка
От ZEUGSWETTER Andreas IZ5
Тема Re: [HACKERS] strange behavior of UPDATE
Дата
Msg-id 219F68D65015D011A8E000006F8590C60267B378@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: [HACKERS] strange behavior of UPDATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> - update bench set k500k = k500k + 1 where k100 = 30
>     with    indeces  unknown
>    without indeces 36 seconds

can you run an: explain update bench set k500k = k500k + 1 where k100 = 30;

> Still the poor update routines do not explain the
> strange behavior, that the postmaster runs for
> hours using at most 10% CPU, and all the time
> heavy disk activity is observed.

I suspect it is doing a seq scan. Thus explaining the heavy disk activity.
I have previously sent in a patch which will fix this if someone applies it.

Andreas



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

Предыдущее
От: Vadim Mikheev
Дата:
Сообщение: Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Следующее
От: ZEUGSWETTER Andreas IZ5
Дата:
Сообщение: AW: [HACKERS] create index updates nrows statistics