Re: Better Connection Statistics

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: 'bricklen' <bricklen(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Better Connection Statistics
Date: 2014-02-07 22:36:00
Message-ID: 0683F5F5A5C7FE419A752A034B4A0B97976F9B57@sswchi5pmbx2.peak6.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

> I don't know any tools off-hand, but you might be able to generate
> partial statistics from the log files with a descriptive log_line_prefix
> like "%m [%p] (user=%u) (db=%d) (rhost=%h) [vxid:%v txid:%x] [%i] "

We get 60k queries per second all day long. No way am I turning on query logging to capture the stats I want. :)

Last month, I needed to track something down and set log_min_duration_statement to 0, logging everything each connection does. It was only like that for 10 seconds, and I ended up with about 400MB of log output. I shudder to think of what would happen if I left it that way.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2014-02-07 22:41:18 Re: roles inheriting configuration values
Previous Message bricklen 2014-02-07 22:27:10 Re: Better Connection Statistics

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Jones 2014-02-07 23:33:10 Help with nearest location
Previous Message bricklen 2014-02-07 22:27:10 Re: Better Connection Statistics