Re: what does pg_activity mean when the database is stuck?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: what does pg_activity mean when the database is stuck?
Дата
Msg-id CAHyXU0zUDt20Qs60vnZEPg0ae8zHmHPm80AxoLh4PJEh-3CVaQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: what does pg_activity mean when the database is stuck?  (Si Chen <sichen@opensourcestrategies.com>)
Ответы Re: what does pg_activity mean when the database is stuck?
Список pgsql-general
On Wed, Jun 11, 2014 at 5:37 PM, Si Chen
<sichen@opensourcestrategies.com> wrote:
> The state is "idle".  I don't have the state_change, but I will try to
> collect it if it happens again.

If they are idle, then the problem is probably with your application
-- you're grabbing new connections and not closing them or reusing
them.  It's a very common problem.  The 'query' when idle represents
the last query run -- the database finished it and is sitting around.

merlin


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

Предыдущее
От: Si Chen
Дата:
Сообщение: Re: what does pg_activity mean when the database is stuck?
Следующее
От: Keith
Дата:
Сообщение: Re: How can I tell if pg_restore is running?