Re: log_duration and log_statement - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: log_duration and log_statement
Date
Msg-id 20060314191323.GM45250@pervasive.com
Whole thread Raw
In response to Re: log_duration and log_statement  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
On Tue, Mar 14, 2006 at 08:50:22AM +0000, Simon Riggs wrote:
> Is the issue that the log volume is too high? We might be able to look
> at ways to reduce/compress the log volume for duration/statement
> logging.

ISTM that for performance analysis there's probably a better alternative
than just dumping query statements to a logfile. The information we
really want is stuff like:

WAL sync's per second
Read-only queries per second
Queries that modify data per second
Transactions per second
Blacks written per second (maybe broken down by WAL, heap and index)
etc...

Doesn't really have anything to do with logging query strings passed
into the parser.

I know dtrace could be used to provide this kind of info, but it's only
on Solaris (and eventually FreeBSD). But it should be possible to
provide our own version of that for platforms that don't have something
like dtrace.

Or perhaps there's some entirely different statistics collection method
we could come up with...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Restoring a Full Cluster on a Different Architecture (32 x 64)
Next
From: Stephan Szabo
Date:
Subject: Re: constraints and sql92 information_schema compliance