Re: simple update queries take a long time - postgres 8.3.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: simple update queries take a long time - postgres 8.3.1
Дата
Msg-id 1751.1207060026@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: simple update queries take a long time - postgres 8.3.1  (Tomasz Ostrowski <tometzky@batory.org.pl>)
Ответы Re: simple update queries take a long time - postgres 8.3.1
Список pgsql-general
Tomasz Ostrowski <tometzky@batory.org.pl> writes:
> I'd also set
>     log_checkpoints=on
> to get an idea how it behaves.

Yeah, that's really the *first* thing to do.  You need to determine
whether the episodes of slowness are correlated with checkpoints
or not; there's no point fooling with the checkpoint parameters if
not.

Another thing you could try in order to get a handle on what's
happening is to watch the output of "vmstat 1" or a similar tool,
and see if there are spikes in CPU or I/O load when things are
slow.  If not, I'd next look into PG's pg_locks view to see if
queries are getting blocked on locks.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] ANALYZE getting dead tuple count hopelessly wrong
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Using tables in other PostGreSQL database