From: Tom Lane <tgl@sss.pgh.pa.us>
To: psql-mail@freeuk.com
Cc: pgsql-general@postgresql.org
Subject: Re: Slow SELECT
Date: Fri, 03 Oct 2003 12:50:25 -0400
Message-ID: <26762.1065199825@sss.pgh.pa.us> (raw)
In-Reply-To: <E1A50Io-000KGI-Lc@buckaroo.freeuk.net>
References: <E1A50Io-000KGI-Lc@buckaroo.freeuk.net>
psql-mail@freeuk.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, psql-mail@freeuk.com
Subject: Re: Slow SELECT
In-Reply-To: <26762.1065199825@sss.pgh.pa.us>
References: <E1A50Io-000KGI-Lc@buckaroo.freeuk.net> <26762.1065199825@sss.pgh.pa.us>
* 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