Re: How to find the hits on the databases and tables in Postgres

From: nikhil raj <nikhilraj474(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)com, k(dot)knizhnik(at)postgrespro(dot)ru
Subject: Re: How to find the hits on the databases and tables in Postgres
Date: 2018-05-04 16:45:41
Message-ID: CAG1ps1zidpNEraUNyoQO--1XV6Nkfbrty22OiOaJuNtBEBf1Pw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Adrian Klaver,

Thanks for the fast response .

But here is the issue is here we have 200+ databases and 5 servers so
cannot manually runs this command all ways is there any 3rd party tool for
that which would give me the hits on DB and tables in it so that it would
be so help full for me.

now currently prepared a scripts for that which goes and does for DB butr
after that i have much manually work with it so is there any third party
tool for that

Thanks,

On Fri, May 4, 2018 at 6:51 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 05/04/2018 04:44 AM, nikhil raj wrote:
>
>> Hi,
>> Any one can please help me out
>>
>> How to monitor the Hits on database and how many hits on each user
>> tables Through query.
>> Is there any other tools for that so it can full fill my requirement for
>> it .
>>
>
> https://www.postgresql.org/docs/10/static/monitoring-stats.html
>
> https://www.postgresql.org/docs/10/static/monitoring-stats.
> html#PG-STAT-DATABASE-VIEW
>
> https://www.postgresql.org/docs/10/static/monitoring-stats.
> html#PG-STAT-DATABASE-VIEW
>
> pg_stat_user_tables Same as pg_stat_all_tables, except that only user
> tables are shown.
>
>
>> Thanks,
>>
>>
>>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2018-05-04 16:52:35 statement_timeout issue
Previous Message Michael Paquier 2018-05-04 14:13:33 Re: relkind='p' has no pg_stat_user_tables