Re: Script and tool to monitoring sessions

From: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
To: abdujaparov <afmulone(at)gmail(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Script and tool to monitoring sessions
Date: 2015-09-25 08:58:32
Message-ID: CAFS1N4gb=MHSxYFSB_N-mtC7VZUAR7-7M=y6rxziSmiggp1QeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Sep 25, 2015 at 2:08 PM, abdujaparov <afmulone(at)gmail(dot)com> wrote:

> 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')"
>
>
>
To see how much time the sequence is taking, try something like
select nextval('myseq') from generate_series(1,<replace withyour upper
limit>);
Please note that the sequence will go up to the high value once the SELECT
is executed.

>
> Regards,
> Angelo
>
>
>
> --
> View this message in context:
> http://postgresql.nabble.com/Script-and-tool-to-monitoring-sessions-tp5867117p5867339.html
> Sent from the PostgreSQL - novice mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Thomas Kellerer 2015-09-25 09:04:34 Re: Script and tool to monitoring sessions
Previous Message abdujaparov 2015-09-25 08:38:37 Re: Script and tool to monitoring sessions