From: Lonni J Friedman <netllama@gmail.com>
To: Eric Brown <eric.brown@propel.com>
Cc: E-mail Postgres help <pgsql-general@postgresql.org>
Subject: Re: log_min_duration_statement
Date: Wed, 26 Jan 2005 06:22:07 -0800
Message-ID: <7c1574a905012606221c1b2b6d@mail.gmail.com> (raw)
In-Reply-To: <8A0A4A18-6F86-11D9-B051-000A95C7176C@propel.com>
References: <8A0A4A18-6F86-11D9-B051-000A95C7176C@propel.com>
Setting the number of something higher than 250ms ?
On Wed, 26 Jan 2005 02:39:21 -0800, Eric Brown <eric.brown@propel.com> wrote:
> I set this to 250 and the statements that take longer than this are
> logged... but my driver is creating all kinds of cursors, so it isn't
> logging anything useful. Yet, if I log all statement
> (log_statment='mod'), I get way more logging than is useful. Is there a
> happy medium?
>
> This is what I'm getting now(for example):
> Jan 26 02:26:15 abacagw postgres[28359]: [22-1] LOG: duration: 284.786
> ms statement: FETCH 1 FROM "PgSQL_A8A3BE0C"
> Jan 26 02:26:15 abacagw postgres[27992]: [19-1] LOG: duration: 254.549
> ms statement: FETCH 1 FROM "PgSQL_A8A2884C"
> Jan 26 02:26:15 abacagw postgres[28432]: [11-1] LOG: duration: 376.167
> ms statement: FETCH 1 FROM "PgSQL_A8A49CAC"
> Jan 26 02:26:16 abacagw postgres[28359]: [23-1] LOG: duration: 373.027
> ms statement: FETCH 1 FROM "PgSQL_A8A166AC"
> Jan 26 02:26:16 abacagw postgres[28539]: [10-1] LOG: duration: 278.023
> ms statement: FETCH 1 FROM "PgSQL_A8A387EC"
> Jan 26 02:26:16 abacagw postgres[28361]: [24-1] LOG: duration: 499.291
> ms statement: FETCH 1 FROM "PgSQL_A8A68F0C"
> Jan 26 02:26:17 abacagw postgres[28359]: [24-1] LOG: duration: 636.480
> ms statement: FETCH 1 FROM "PgSQL_A8A166AC"
> Jan 26 02:26:17 abacagw postgres[28399]: [9-1] LOG: duration: 369.708
> ms statement: FETCH 1 FROM "PgSQL_A89CB0AC"
> Jan 26 02:26:17 abacagw postgres[28432]: [12-1] LOG: duration: 304.065
> ms statement: FETCH 1 FROM "PgSQL_A89E1CAC"
> Jan 26 02:26:17 abacagw postgres[28361]: [25-1] LOG: duration: 252.809
> ms statement: FETCH 1 FROM "PgSQL_A8A3694C"
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama@gmail.com
LlamaLand http://netllama.linux-sxs.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: netllama@gmail.com, eric.brown@propel.com
Subject: Re: log_min_duration_statement
In-Reply-To: <7c1574a905012606221c1b2b6d@mail.gmail.com>
References: <8A0A4A18-6F86-11D9-B051-000A95C7176C@propel.com> <7c1574a905012606221c1b2b6d@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox