From: Jeff <threshar@torgo.978.org>
To: ml@bortal.de
Cc: pgsql-performance@postgresql.org
Subject: Re: current transaction in productive database
Date: Fri, 20 Mar 2009 13:01:42 -0400
Message-ID: <B9B28DF1-F122-48CC-BB8F-AC53AC72C88A@torgo.978.org> (raw)
In-Reply-To: <49C36145.1080909@bortal.de>
References: <49C36145.1080909@bortal.de>
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 <> '<IDLE>';
--
Jeff Trout <jeff@jefftrout.com>
http://www.stuarthamm.net/http://www.dellsmartexitin.com/
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-performance@postgresql.org
Cc: threshar@torgo.978.org, ml@bortal.de
Subject: Re: current transaction in productive database
In-Reply-To: <B9B28DF1-F122-48CC-BB8F-AC53AC72C88A@torgo.978.org>
References: <49C36145.1080909@bortal.de> <B9B28DF1-F122-48CC-BB8F-AC53AC72C88A@torgo.978.org>
* 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