From: Rod Taylor <pg@rbt.ca>
To: Allen Landsidel <alandsidel@gmail.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Strange (?) Index behavior?
Date: Fri, 05 Nov 2004 10:07:38 -0500
Message-ID: <1099667258.1647.827.camel@home> (raw)
In-Reply-To: <88f1825a041105063955367088@mail.gmail.com>
References: <88f1825a041105063955367088@mail.gmail.com>
> It seems to me that a query saying "SELECT column FROM table WHERE
> column LIKE 'AA%';" should be just as fast or very close to the first
> case up above. However, explain tells me that this query is not using
> the index above, which is what's not making sense to me.
It looks for an exact expression match, and doesn't know about values
which are equal.
You can provide both clauses.
WHERE column LIKE 'A%' and column LIKE 'AA%';
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: pg@rbt.ca, alandsidel@gmail.com
Subject: Re: Strange (?) Index behavior?
In-Reply-To: <1099667258.1647.827.camel@home>
* 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