pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Guy Thornley <guy@esphion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why does a simple query not use an obvious index?
Date: 30 Aug 2004 11:41:05 -0400
Message-ID: <87k6vgiqge.fsf@stark.xeocode.com> (raw)
In-Reply-To: <20040830081959.GC3714@conker.esphion.com>
References: <ENEIKKAEJOFHOIHMMOIDIEBMJCAA.jack.kerkhof@guest-tek.com>
	<1093804128.5493.22.camel@localhost.localdomain>
	<87fz65k5sq.fsf@stark.xeocode.com>
	<16093.1093817023@sss.pgh.pa.us>
	<20040830081959.GC3714@conker.esphion.com>


Guy Thornley <guy@esphion.com> writes:

>             "stats__ends_at" btree (stats__ends_at("at", resolution, "values"))

Postgres 7.4 doesn't have any stats on functional indexes. So it's back to
just guessing at the selectivity of this. 8.0 does gather stats for functional
indexes so it should be better off.

-- 
greg




view thread (28+ messages)  latest in thread

Message-ID: <87k6vgiqge.fsf@stark.xeocode.com>
Permalink:  ../87k6vgiqge.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/87k6vgiqge.fsf@stark.xeocode.com

 · 

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-performance@postgresql.org
  Cc: gsstark@mit.edu, guy@esphion.com
  Subject: Re: Why does a simple query not use an obvious index?
  In-Reply-To: <87k6vgiqge.fsf@stark.xeocode.com>

* 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