From: Jim C. Nasby <jnasby@pervasive.com>
To: Robin Ericsson <lobbin@gmail.com>
Cc: Dan Gorman <dgorman@hi5.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Selects query stats?
Date: Wed, 24 May 2006 16:33:53 -0500
Message-ID: <20060524213352.GN59464@pervasive.com> (raw)
In-Reply-To: <c014a9590605240327h3f95ebbat8a6fcbc90680633@mail.gmail.com>
References: <9C4E40CF-6C06-4297-AF32-A7EF2A3F3C0F@hi5.com>
<4473512E.7020805@ca.sophos.com>
<82252882-2A15-4823-A517-7AB3161889D1@hi5.com>
<4473553C.1010804@ca.sophos.com>
<127D68F6-7620-4A62-8D1A-9B475E7571CD@hi5.com>
<c014a9590605240327h3f95ebbat8a6fcbc90680633@mail.gmail.com>
On Wed, May 24, 2006 at 12:27:41PM +0200, Robin Ericsson wrote:
> On 5/23/06, Dan Gorman <dgorman@hi5.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@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jnasby@pervasive.com, lobbin@gmail.com, dgorman@hi5.com
Subject: Re: Selects query stats?
In-Reply-To: <20060524213352.GN59464@pervasive.com>
* 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