pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: teknokrat <teknokrat@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: indexing timestamp fields
Date: Thu, 16 Oct 2003 11:56:29 -0500
Message-ID: <20031016165629.GA28009@wolff.to> (raw)
In-Reply-To: <bmkafb$aiu$1@news.hub.org>
References: <bmjqo8$1hve$1@news.hub.org>
	<60wub6wjxf.fsf@dev6.int.libertyrms.info>
	<bmkafb$aiu$1@news.hub.org>

On Wed, Oct 15, 2003 at 21:25:17 +0100,
  teknokrat <teknokrat@yahoo.com> wrote:
> 
> I have a lot of queries of the " where timestamp < some date " type and 
> was wondering if an index would improve performance. None of the 
> timestamps are null and they are always populated

Unless that query returns only a small fraction of the table (which would
be unusual for a before some date restriction) or you order by the date,
an index probably won't help.



view thread (5+ messages)

Message-ID: <20031016165629.GA28009@wolff.to>
Permalink:  ../20031016165629.GA28009@wolff.to/
Also on:    postgresql.org/message-id/20031016165629.GA28009@wolff.to

 · 

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-sql@postgresql.org
  Cc: bruno@wolff.to, teknokrat@yahoo.com
  Subject: Re: indexing timestamp fields
  In-Reply-To: <20031016165629.GA28009@wolff.to>

* 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