pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Partial index slower than regular index
Date: Wed, 06 Apr 2011 00:44:22 -0400
Message-ID: <4331.1302065062@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTimFZjYve4GDOXQJ6VjRO1pOQEwp4w@mail.gmail.com>
References: <BANLkTimFZjYve4GDOXQJ6VjRO1pOQEwp4w@mail.gmail.com>

Thom Brown <thom@linux.com> writes:
> The index doesn't get used.  There's probably a logical explanation,
> which is what I'm curious about.

Er ... it's broken?

It looks like the index predicate expression isn't getting the right
collation assigned, so predtest.c decides the query doesn't imply the
index's predicate.  Too tired to look into exactly why right now, but
it's clearly bound up in all the recent collation changes.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <4331.1302065062@sss.pgh.pa.us>
Permalink:  ../4331.1302065062@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4331.1302065062@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, thom@linux.com
  Subject: Re: Partial index slower than regular index
  In-Reply-To: <4331.1302065062@sss.pgh.pa.us>

* 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