X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2979C9FA169 for ; Tue, 23 May 2006 15:41:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20921-06 for ; Tue, 23 May 2006 15:41:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 248F49FA372 for ; Tue, 23 May 2006 15:41:02 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 69CC456437; Tue, 23 May 2006 13:41:01 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 23 May 2006 13:41:00 -0500 Date: Tue, 23 May 2006 13:41:00 -0500 From: "Jim C. Nasby" To: Dan Gorman Cc: mischa@ca.sophos.com, pgsql-performance@postgresql.org Subject: Re: Selects query stats? Message-ID: <20060523184100.GW64371@pervasive.com> References: <9C4E40CF-6C06-4297-AF32-A7EF2A3F3C0F@hi5.com> <4473512E.7020805@ca.sophos.com> <82252882-2A15-4823-A517-7AB3161889D1@hi5.com> <4473553C.1010804@ca.sophos.com> <127D68F6-7620-4A62-8D1A-9B475E7571CD@hi5.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <127D68F6-7620-4A62-8D1A-9B475E7571CD@hi5.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060523:dgorman@hi5.com::z+IpjDrk05SZv2jp:005QwE X-Hashcash: 1:20:060523:mischa@ca.sophos.com::E8ET9L4x+y4x1PZH:00000000000000000 0000000000000000000000000Otp X-Hashcash: 1:20:060523:pgsql-performance@postgresql.org::b7ysQk6STEM7cKNb:00000 0000000000000000000000000Gqe X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/434 X-Sequence-Number: 19221 On Tue, May 23, 2006 at 11:33:12AM -0700, Dan Gorman wrote: > In any other DB (oracle, mysql) I know how many queries (selects) per > second the database is executing. How do I get this > number out of postgres? You can't. You also can't know how many DML statements were executed (though you can see how many tuples were inserted/updated/deleted), or how many transactions have occured (well, you can hack the last one, but it's a bit of a mess). It would be nice if all of this was available. -- 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