pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: loren.szendre@gmail.com
To: pgsql-docs@postgresql.org
Subject: case-insensitive index lower()
Date: Tue, 20 Dec 2016 10:02:42 +0000
Message-ID: <20161220100242.25618.66302@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

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&#39;s one thing to create an index, it&#39;s
quite another to know how to write a statement that guarantees that the
index will be used.

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


view thread (2+ messages)  latest in thread

Message-ID: <20161220100242.25618.66302@wrigleys.postgresql.org>
Permalink:  ../20161220100242.25618.66302@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161220100242.25618.66302@wrigleys.postgresql.org

 · 

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-docs@postgresql.org
  Cc: loren.szendre@gmail.com
  Subject: Re: case-insensitive index lower()
  In-Reply-To: <20161220100242.25618.66302@wrigleys.postgresql.org>

* 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