From: Bruce Momjian <bruce@momjian.us>
To: loren.szendre@gmail.com
Cc: pgsql-docs@postgresql.org
Subject: Re: case-insensitive index lower()
Date: Thu, 5 Jan 2017 11:23:31 -0500
Message-ID: <20170105162331.GA3265@momjian.us> (raw)
In-Reply-To: <20161220100242.25618.66302@wrigleys.postgresql.org>
References: <20161220100242.25618.66302@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
On Tue, Dec 20, 2016 at 10:02:42AM +0000, loren.szendre@gmail.com wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.1/static/sql-createindex.html
> Description:
>
> In the section on indexes the documentation accurately describes how to
> create an efficient, case-insensitive index using lower(field_name). But! in
> Firebird to get a query to utilize such index, you must write the query as
> such:
>
> WHERE myfield = lower(:myfield)
>
> Otherwise a table scan is performed. The documentation should state whether
> or not such a thing is required. It's one thing to create an index, it's
> quite another to know how to write a statement that guarantees that the
> index will be used.
I don't see that as useful for the majority of people reading the
documentation. EXPLAIN will clearly show the index being used.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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-docs@postgresql.org
Cc: bruce@momjian.us, loren.szendre@gmail.com
Subject: Re: case-insensitive index lower()
In-Reply-To: <20170105162331.GA3265@momjian.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