Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 826EF9F9BB5 for ; Fri, 12 Oct 2007 17:53:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 08723-06 for ; Fri, 12 Oct 2007 17:53:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 86D4E9F9EAB for ; Fri, 12 Oct 2007 17:53:17 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Fri, 12 Oct 2007 15:53:16 -0500 Message-Id: <470F9863.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Fri, 12 Oct 2007 15:53:07 -0500 From: "Kevin Grittner" To: "henk de wit" , "pgsql-performance@postgresql.org" Subject: Re: How to speed up min/max(id) in 50M rows table? References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/151 X-Sequence-Number: 27173 >>> On Fri, Oct 12, 2007 at 3:41 PM, in message , henk de wit wrote:=20 >=20 > I have a table with some 50 millions rows in PG 8.2. The table has = indexes=20 > on relevant columns. My problem is that most everything I do with this = table=20 > (which are actually very basic selects) is unbearable slow. =20 Do you have autovacuum turned on? With what settings? =20 Do you run scheduled VACUUM ANALYZE? =20 What does the tail of the output from your last VACUUM ANALYZE VERBOSE look like? =20 -Kevin =20