Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A78A0133798E for ; Thu, 28 Apr 2011 12:07:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39058-01 for ; Thu, 28 Apr 2011 15:07:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id D31D21336FA7 for ; Thu, 28 Apr 2011 12:07:22 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 28 Apr 2011 10:07:21 -0500 Message-Id: <4DB93C57020000250003CFEB@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 28 Apr 2011 10:07:19 -0500 From: "Kevin Grittner" To: "Gerhard Hintermayer" , "pgsql-admin" Subject: Re: index usage on timestamp without time zone References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/254 X-Sequence-Number: 37435 Gerhard Hintermayer wrote: > Is there a way to make postgres use the index on the timestamp > column ? The timing is from a test table, production tables have a > lot more rows. It's a mistake to assume that the plan you get on a small table will resemble the plan you will get on a big table. If you want to know what the plan will be on the big table, at least run an EXPLAIN of the query on that big table. -Kevin