X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D337ED1B4E3 for ; Fri, 3 Oct 2003 16:51:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 89412-09 for ; Fri, 3 Oct 2003 13:50:44 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B39DAD1B554 for ; Fri, 3 Oct 2003 13:50:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h93GoPhn026763; Fri, 3 Oct 2003 12:50:25 -0400 (EDT) To: psql-mail@freeuk.com Cc: pgsql-general@postgresql.org Subject: Re: Slow SELECT In-reply-to: References: Comments: In-reply-to psql-mail@freeuk.com message dated "Thu, 02 Oct 2003 11:03:18 +0100" Date: Fri, 03 Oct 2003 12:50:25 -0400 Message-ID: <26762.1065199825@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/149 X-Sequence-Number: 50222 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