X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DB64132A05F for ; Fri, 8 Oct 2004 16:16:27 +0100 (BST) 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 54201-07 for ; Fri, 8 Oct 2004 15:15:33 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id B666F32A057 for ; Fri, 8 Oct 2004 16:14:56 +0100 (BST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id i98FEgDg016352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Oct 2004 09:14:44 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id i98FEg0g060544; Fri, 8 Oct 2004 09:14:42 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id i98FEgWF060543; Fri, 8 Oct 2004 09:14:42 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 8 Oct 2004 09:14:42 -0600 From: Michael Fuhr To: Doug Y Cc: pgsql-admin@postgresql.org Subject: Re: Problems monitoring DB activity Message-ID: <20041008151441.GA60493@winnie.fuhr.org> References: <41669C00.2030209@ptd.net> <20041008141129.GA60199@winnie.fuhr.org> <4166A860.4080607@ptd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4166A860.4080607@ptd.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_DNS_FOR_FROM X-Spam-Level: * X-Archive-Number: 200410/129 X-Sequence-Number: 15122 On Fri, Oct 08, 2004 at 10:46:56AM -0400, Doug Y wrote: > Michael Fuhr wrote: > > > >Does postgresql.conf have stats_command_string = true? > > > Thanks, setting that did the trick.... whats the performance hit for > having it enabled? I haven't done any tests to determine the performance penalty; maybe one of the developers or somebody who's done some benchmarks can comment. The "Annotated postgresql.conf and Global User Configuration (GUC) Guide"[1] says that "Enabling statistics collection costs a small amount of time per query, but is invaluable for debugging and performance tuning." [1] http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/