From: | "Edward W(dot) Rouse" <erouse(at)comsquared(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: ignore case in where clause |
Date: | 2012-03-22 21:05:41 |
Message-ID: | 06ff01cd086f$8a610aa0$9f231fe0$@com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
That was exactly it, Thanks.
> -----Original Message-----
> From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-
> owner(at)postgresql(dot)org] On Behalf Of Guillaume Lelarge
> Sent: Thursday, March 22, 2012 4:39 PM
> To: Edward W. Rouse
> Cc: pgsql-sql(at)postgresql(dot)org
> Subject: Re: [SQL] ignore case in where clause
>
> On Thu, 2012-03-22 at 16:26 -0400, Edward W. Rouse wrote:
> > 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).
> >
>
> Probably because it cannot use the index anymore. Try creating an index
> on lower(column), and see if it helps.
>
>
> --
> Guillaume
> http://blog.guillaume.lelarge.info
> http://www.dalibo.com
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
From | Date | Subject | |
---|---|---|---|
Next Message | John Fabiani | 2012-03-23 21:33:00 | Can I read the data without commit |
Previous Message | Guillaume Lelarge | 2012-03-22 20:38:42 | Re: ignore case in where clause |