From: Edward W. Rouse <erouse@comsquared.com>
To: pgsql-sql@postgresql.org
Subject: ignore case in where clause
Date: Thu, 22 Mar 2012 16:26:09 -0400
Message-ID: <06fe01cd086a$04681ce0$0d3856a0$@com> (raw)
I am currently using lower(column) = '' for matching case insensitive. I
know that there are ways to do this with regular expressions too. I recently
noticed that including even one lower causes severe performance issues (from
290ms to over 80Kms).
What is the best way, performance wise, to do case insensitive matching? I
could spend a few hours testing if I have to, but I'm hoping someone knows
off the top of their heads.
Using 8.3 currently. I am a programmer, not a database person; but we don't
really have a DB here, so I do what I can.
Thanks.
Edward W. Rouse
Comsquared System, Inc.
770-734-5301
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-sql@postgresql.org
Cc: erouse@comsquared.com
Subject: Re: ignore case in where clause
In-Reply-To: <06fe01cd086a$04681ce0$0d3856a0$@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