Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C8BFE6351C2 for ; Fri, 20 Mar 2009 14:02:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 26400-07 for ; Fri, 20 Mar 2009 14:02:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) by mail.postgresql.org (Postfix) with ESMTP id 091AC63516C for ; Fri, 20 Mar 2009 14:02:10 -0300 (ADT) Received: from jefftrout.com ([173.76.167.235]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KGT00D2FDYWDLEF@vms173009.mailsrvcs.net> for pgsql-performance@postgresql.org; Fri, 20 Mar 2009 12:01:53 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by jefftrout.com (Postfix) with ESMTP id AC98C5C48; Fri, 20 Mar 2009 13:01:38 -0400 (EDT) X-Virus-Scanned: amavisd-new at jefftrout.com Received: from jefftrout.com ([127.0.0.1]) by localhost (torgo.home [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D13sppExpr91; Fri, 20 Mar 2009 13:01:36 -0400 (EDT) Received: from [192.168.1.25] (unknown [192.168.1.25]) by jefftrout.com (Postfix) with ESMTP id C93305C3B; Fri, 20 Mar 2009 13:01:36 -0400 (EDT) Cc: pgsql-performance@postgresql.org Message-id: From: Jeff To: ml@bortal.de In-reply-to: <49C36145.1080909@bortal.de> Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-transfer-encoding: 7bit MIME-version: 1.0 (Apple Message framework v930.3) Subject: Re: current transaction in productive database Date: Fri, 20 Mar 2009 13:01:42 -0400 References: <49C36145.1080909@bortal.de> X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/292 X-Sequence-Number: 33214 On Mar 20, 2009, at 5:26 AM, ml@bortal.de wrote: > Hello List, > > is there a way to find out, how many transactions my currenc > productive database is doing? > > I know know how much i an offer with my new database and hardware, > but i would also like to know what i actually _need_ on my current > productive system. > > Is there a way to find this out? Are you looking to see how many transactions per second or more how many transactions concurrently at a given time? For the former you can use pgspy (its on pgfoundry) to get an idea of queries per second coming in. For the latter, just select * from pg_stat_activity where current_query <> ''; -- Jeff Trout http://www.stuarthamm.net/ http://www.dellsmartexitin.com/