Re: How to get total count of queries hitting DB per day or per hour?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "Sheena, Prabhjot" <Prabhjot(dot)Singh(at)classmates(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get total count of queries hitting DB per day or per hour?
Date: 2015-07-09 20:07:24
Message-ID: CAOR=d=0adwX_F2UsDvraj=W6ok7KY5cGZDOb5hRwVUDr20HnEA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 9, 2015 at 12:04 PM, Sheena, Prabhjot
<Prabhjot(dot)Singh(at)classmates(dot)com> wrote:
> Guys
>
> Is there a way to get total count of queries hitting
> Postgresql DB(verison 9.3) per day or per hour ? I cannot turn on
> log_statement=all coz that’s too much logging for our log file to handle. Is
> there another way to do that.

If you just need totals, turn on just log_duration and then you can
grep the logs etc for that.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sheena, Prabhjot 2015-07-09 20:21:15 Re: How to get total count of queries hitting DB per day or per hour?
Previous Message Vick Khera 2015-07-09 19:07:34 Re: How to test SSL cert from CA?