Re: ERROR: canceling statement due to statement timeout

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: ERROR: canceling statement due to statement timeout
Дата
Msg-id 4C2E953F.8010007@postnewspapers.com.au
обсуждение исходный текст
Ответ на ERROR: canceling statement due to statement timeout  (Tim <tavspam@gmail.com>)
Список pgsql-general
On 03/07/10 00:22, Tim wrote:
> Hi,
>
> I've had a website up for a couple of months and it's starting to get
> these db timeouts as traffic has increased to say 1k pageviews a day.

Take note of which queries are timing out. You might need to enable some
more logging in your app or the db to find out.

Use EXPLAIN ANALYZE to collect information about the performance of
those queries. You can post that here, along with some information about
your schema.

Monitor pg_catalog.pg_stat_activity for query runtimes and general load.

Turn off the statement_timeout, or at least increase it considerably.

--
Craig Ringer

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

Предыдущее
От: Howard Rogers
Дата:
Сообщение: Re: DBI::Oracle problems
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: New DB-design - help and documentation pointers appreciated