Re: Queries that are running in postgres most of the time

From: Fabio Pardi <f(dot)pardi(at)portavita(dot)eu>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Queries that are running in postgres most of the time
Date: 2018-03-22 08:26:59
Message-ID: 40457dbc-a236-406f-8afc-09fccca87ea9@portavita.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I think that

select * from pg_stat_statements ;

is a good starting point. You can then refine the query based on what you are interested for.

This is a good read:

https://www.postgresql.org/docs/10/static/monitoring-stats.html

Regards,

fabio pardi

On 03/22/2018 08:57 AM, Debraj Manna wrote:
> Is there any tool that will allow me to know which queries / transaction are getting executed most of the time in postgres? 
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gary Stainburn 2018-03-22 09:53:48 Re: postgres encryption
Previous Message Laurenz Albe 2018-03-22 08:23:45 Re: psql error