Re: Performance

From: phb07 <phb07(at)apra(dot)asso(dot)fr>
To: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>, pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Performance
Date: 2018-02-25 08:08:58
Message-ID: 3ed8c6c6-227e-7bf2-65d4-970732a8ab90@apra.asso.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Le 23/02/2018 à 22:20, Andreas Kretschmer a écrit :
>
>
> Am 23.02.2018 um 20:29 schrieb Daulat Ram:
>> We have the following requirements in single query or any proper
>> solution. Please help on this.
>> How many sessions are currently opened.
> ask pg_stat_activity, via select * from pg_stat_activity
>
>
>> -and if opened then how many queries have executed on that session.
>
> Whot? There isn't a counter for that, AFAIK.
>
>
>> -and also we have to trace how much time each query is taking.
>
> You can use auto_explain for that
>
>> -and also we have to find the cost of each query.
>
> the same, auto_explain
>
> please keep in mind: costs are imaginary.
>
You can also have a look at PoWA : https://github.com/dalibo/powa
>
>
> Regards, Andreas
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message daulat sagar 2018-02-26 05:27:19 check_postgres via Nagios
Previous Message PropAAS DBA 2018-02-24 20:58:48 Re: Please help