Skip site navigation (1) Skip section navigation (2)

Re: Selects query stats?

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Robin Ericsson <lobbin(at)gmail(dot)com>
Cc: Dan Gorman <dgorman(at)hi5(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Selects query stats?
Date: 2006-05-24 21:33:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Wed, May 24, 2006 at 12:27:41PM +0200, Robin Ericsson wrote:
> On 5/23/06, Dan Gorman <dgorman(at)hi5(dot)com> 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?
> Mysql does AFAIR only count the number of queries and then uses the
> "seconds since startup" to estimate the number of queries per second.
> If your server is hammered with queries 1 hour a day it's not giving
> you a fair result.

Somehow that doesn't surprise me...

In any case, if we at least provide a raw counter, it's not that hard to
turn that into selects per second over some period of time.
Jim C. Nasby, Sr. Engineering Consultant      jnasby(at)pervasive(dot)com
Pervasive Software    work: 512-231-6117
vcard:       cell: 512-569-9461

In response to


pgsql-performance by date

Next:From: kynnDate: 2006-05-25 00:52:53
Subject: Optimizing a huge_table/tiny_table join
Previous:From: Jim C. NasbyDate: 2006-05-24 21:32:25
Subject: Re: Getting even more insert performance (250m+rows/day)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group