pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Gerhard Hintermayer <gerhard.hintermayer@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: index usage on timestamp without time zone
Date: Thu, 28 Apr 2011 10:07:19 -0500
Message-ID: <4DB93C57020000250003CFEB@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTi=mTR6Ly1JKD3GhT5LaxFGo=NYPXw@mail.gmail.com>
References: <BANLkTi=mTR6Ly1JKD3GhT5LaxFGo=NYPXw@mail.gmail.com>

Gerhard Hintermayer <gerhard.hintermayer@gmail.com> 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



view thread (2+ messages)

Message-ID: <4DB93C57020000250003CFEB@gw.wicourts.gov>
Permalink:  ../4DB93C57020000250003CFEB@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DB93C57020000250003CFEB@gw.wicourts.gov

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, gerhard.hintermayer@gmail.com
  Subject: Re: index usage on timestamp without time zone
  In-Reply-To: <4DB93C57020000250003CFEB@gw.wicourts.gov>

* 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