pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Requests per second ?
2+ messages / 2 participants
[nested] [flat]

* Requests per second ?
@ 2003-03-28 10:39 jeanarthur@eurovox.fr
  2003-03-31 13:38 ` Re: Requests per second ? Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 2+ messages in thread

From: jeanarthur@eurovox.fr @ 2003-03-28 10:39 UTC (permalink / raw)
  To: pgsql-admin

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






Jean-Arthur Silve
EuroVox
4, Place Félix Eboué
75583 Paris Cedex 12
T : +33 1 44670505
F : +33 1 44670519




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Requests per second ?
  2003-03-28 10:39 Requests per second ? jeanarthur@eurovox.fr
@ 2003-03-31 13:38 ` Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2003-03-31 13:38 UTC (permalink / raw)
  To: jeanarthur@eurovox.fr; +Cc: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-03-31 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 10:39 Requests per second ? jeanarthur@eurovox.fr
2003-03-31 13:38 ` Robert Treat <xzilla@users.sourceforge.net>

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