X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1BE9A4763B8 for ; Mon, 31 Mar 2003 10:41:29 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 8151147667C for ; Mon, 31 Mar 2003 08:38:38 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h2VEEt6P000492; Mon, 31 Mar 2003 09:14:55 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h2VDcap23056; Mon, 31 Mar 2003 08:38:36 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTLJPY; Mon, 31 Mar 2003 08:38:34 -0500 Subject: Re: Requests per second ? From: Robert Treat To: jeanarthur@eurovox.fr Cc: pgsql-admin@postgresql.org In-Reply-To: <3E84346A.10825.846A02@localhost> References: <00f501c2f504$9b7e1180$0300a8c0@terra> <3E84346A.10825.846A02@localhost> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 31 Mar 2003 08:38:36 -0500 Message-Id: <1049117916.13799.1707.camel@camel> Mime-Version: 1.0 X-Spam-Status: No, hits=-34.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/498 X-Sequence-Number: 8138 Don't remember what I wrote this for, but IIRC it outputs the current transaction counter every 1 sec, which you can then use to determine the number of transactions per second. #!/bin/bash while true do sleep 1; psql -U postgres mydb -c "SELECT age(datfrozenxid) FROM pg_database where datname='mydb'"; done; I'm sure you can use this to come up with something more robust. Robert Treat On Fri, 2003-03-28 at 05:39, jeanarthur@eurovox.fr wrote: > H, > > Is there a simple way to know how many request per second > (average) my PG database is currently handling ?? > > thank you ! > > jean-arthur silve