Re: Script and tool to monitoring sessions

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Script and tool to monitoring sessions
Дата
Msg-id mu32n2$93t$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: Script and tool to monitoring sessions  (abdujaparov <afmulone@gmail.com>)
Ответы Re: Script and tool to monitoring sessions  (abdujaparov <afmulone@gmail.com>)
Список pgsql-novice
abdujaparov schrieb am 25.09.2015 um 10:38:
> Hi,
> I am checking
>
> SELECT * FROM pg_stat_activity;
>
> during the ingestion process:
>
> 19028;"smapdb";1151;19029;"smap";"";"172.25.10.42";"";62921;"2015-09-25
> 10:30:31.523041+02";"2015-09-25 10:30:38.013215+02";"2015-09-25
> 10:34:17.075262+02";"2015-09-25 10:34:17.075295+02";f;"idle in
> transaction";;2765;"select nextval ('public.l3smap_partition_id_seq')"
>
> This is the ingestion process that is running. I think that all the time is
> spent on the sequence is it correct?
>

The column "query" only reflects the _current_ statement  if state = 'active' at the same time.

In the above result, the session is not doing anything ("idle") and the *last* statement it executed, was the "select
nexval()". 

The session is in "idle in transaction" which means that it started a transaction but has not yet committed it.




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

Предыдущее
От: Jayadevan M
Дата:
Сообщение: Re: Script and tool to monitoring sessions
Следующее
От: abdujaparov
Дата:
Сообщение: Re: Script and tool to monitoring sessions