Re: Slow SELECT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: psql-mail(at)freeuk(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow SELECT
Date: 2003-10-03 16:50:25
Message-ID: 26762.1065199825@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

psql-mail(at)freeuk(dot)com writes:
> I am running a SELECT to get all tuples within a given date range. This
> query is much slwoer than i expected - am i missing something?

Well, it seems to be running at about 5 msec/row, which would be quite
respectable if each fetch required another disk seek. I'm wondering why
you are (apparently) not managing to get more than one row per page
fetched. What are your configuration settings --- particularly
shared_buffers? Could we see the output of VACUUM VERBOSE for this
table?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-10-03 17:01:05 Re: updating records
Previous Message Dennis Gearon 2003-10-03 16:49:47 Re: Server recommendations