X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4B1D33A5B90 for ; Wed, 26 Jan 2005 14:22:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23460-04 for ; Wed, 26 Jan 2005 14:22:05 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by svr1.postgresql.org (Postfix) with ESMTP id DABF33A5BC4 for ; Wed, 26 Jan 2005 14:22:07 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id f1so64791rne for ; Wed, 26 Jan 2005 06:22:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=LxEIELQQe/PolqUJL17Ex0BPSLrwpA+9ymKJ3xfcO5yMVb0p3VQF5Gfp3sxC2imMiqIFqugv9vZzR/e0i2rbf5+XMKaky4Rbnnth3EPq6KFxex2/jObmyQbEj019tP4zLfJWhr3iUKhrpZ/57AjRUY7bPjJIbKUGasJ10VcJm0o= Received: by 10.38.71.3 with SMTP id t3mr117143rna; Wed, 26 Jan 2005 06:22:07 -0800 (PST) Received: by 10.38.149.65 with HTTP; Wed, 26 Jan 2005 06:22:07 -0800 (PST) Message-ID: <7c1574a905012606221c1b2b6d@mail.gmail.com> Date: Wed, 26 Jan 2005 06:22:07 -0800 From: Lonni J Friedman Reply-To: Lonni J Friedman To: Eric Brown Subject: Re: log_min_duration_statement Cc: E-mail Postgres help In-Reply-To: <8A0A4A18-6F86-11D9-B051-000A95C7176C@propel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <8A0A4A18-6F86-11D9-B051-000A95C7176C@propel.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.055 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200501/1488 X-Sequence-Number: 72437 Setting the number of something higher than 250ms ? On Wed, 26 Jan 2005 02:39:21 -0800, Eric Brown 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