Re: slow query performance

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>
Cc: davew(at)wsieurope(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: slow query performance
Date: 2003-10-30 13:20:05
Message-ID: 20031030082005.3878fc93.threshar@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> > For instance:
> > SELECT station, air_temp FROM obs
> > WHERE station = 'EGBB'
> > AND valid_time > '28/8/03 00:00'
> > AND valid_time < '28/10/03 00:00'
> >
> > takes 4 mins 32 secs.

How many rows should that return?
[explain analyze will tell you that]

and while that runs is your disk thrashing? vmstat's bi/bo columns will
tell you.

7.1 is quite old, but I do understand the pain of migraing to 7.3 [or
.4beta] with huge db's

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harald Fuchs 2003-10-30 13:21:28 Re: dump schema schema only?
Previous Message Tino Wildenhain 2003-10-30 13:11:07 Re: Sending email from PL/pgsql