Re: Measuring CPU time use? (Another stupid question)

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Jessica Blank <jb(at)twu(dot)net>
Cc: Justin Clift <justin(at)postgresql(dot)org>, Joe Conway <mail(at)joeconway(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Measuring CPU time use? (Another stupid question)
Date: 2002-12-18 22:10:32
Message-ID: Pine.LNX.4.33.0212181507440.4045-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Actually, I'd be more bothered by the "Visual" in the name :-)

Just because it comes from RedHat doesn't mean it's shite. Some of their
stuff is quite nice. Just use the 'explain' or 'explain analyze' sql
statement, it'll get you what you need. But, pay attention to the CPU/IO
usage, as that will tell you what your limiting factors are.

On Wed, 18 Dec 2002, Jessica Blank wrote:

> Bllllleleeeuuuughhh...
>
> I'd rather not touch Red Hat's stuff.. or ANYTHING with "Explain" in the
> name >G< Thank you for the info tho...
>
> I would much rather just get the info via a simple command line, or a line
> of SQL, or something I can do in Perl....
>
> On Thu, 19 Dec 2002, Justin Clift wrote:
>
> > Joe Conway wrote:
> > > Jessica Blank wrote:
> > >
> > >> I suppose I should rephrase.
> > > [...snip...]
> > >> So I guess what I'm saying is that I don't care so much about CPU
> > >> time, or I/O time, but *TOTAL* time. How long it takes from the
> > >> instant the query hits Postgres to the instant I get my results back...
> > >
> > >
> > > That's pretty much exactly what EXPLAIN ANALYZE does for you. And along
> > > with it, you get other useful information to help you improve the query.
> >
> > Red Hat recently released their "Visual Explain 1.1" tool as well, and that looks like it could be very useful for what
> > Jessica's after too:
> >
> > http://sources.redhat.com/rhdb/tools.html
> >
> > :-)
> >
> > Regards and best wishes,
> >
> > Justin Clift
> >
> >
> > > Joe
> >
> >
> >
> >
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2002-12-18 22:20:11 Re: Regarding select distinct ...query
Previous Message scott.marlowe 2002-12-18 21:53:45 Re: ORDER BY random() LIMIT 1 slowness