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

From: "Sheena, Prabhjot" <Prabhjot(dot)Singh(at)classmates(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(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:21:15
Message-ID: 13E39D789E19FF4E9A87F6D456F3F982012451FA@SEAMBX02.sea.corp.int.untd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I did try that but that’s too much logging as well.

Prabhjot Singh
Database Administrator

CLASSMATES
1501 4th Ave., Suite 400
Seattle, WA 98101
206.301.4937 o
206.301.5701 f

-----Original Message-----
From: Scott Marlowe [mailto:scott(dot)marlowe(at)gmail(dot)com]
Sent: Thursday, July 9, 2015 1:07 PM
To: Sheena, Prabhjot
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] How to get total count of queries hitting DB per day or per hour?

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

Browse pgsql-general by date

  From Date Subject
Next Message Melvin Davidson 2015-07-09 20:24:17 Re: How to get total count of queries hitting DB per day or per hour?
Previous Message Scott Marlowe 2015-07-09 20:07:24 Re: How to get total count of queries hitting DB per day or per hour?