Re: LIKE and SIMILAR TO

From: RW <postgres(at)tauceti(dot)net>
To: c k <shreeseva(dot)learning(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LIKE and SIMILAR TO
Date: 2008-08-22 11:24:21
Message-ID: 48AEA1E5.3080505@tauceti.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Maybe you should give tsearch2 a try and create a GIN index.
Regex searches are sometimes a option.

Robert

c k wrote:
> Hello all,
> As we are migrating our ERP application from MySQL to PostgreSQL we
> have some difficulties. One of them is use of Like and Similar to
> operators. We often use LIKE to search a string from front-end without
> case sensetivity. As postgreSQL's LIKE is case sensitive, we tried
> ILIKE and SIMILAR TO, but both are slower than LIKE and we must need
> case insensitivity. How can we get this by increases speed. All search
> columns are VARCHAR(100)to VARCHAR(250). Currently without index.
>
> Thanks,
> CPK

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tino Wildenhain 2008-08-22 11:31:05 Re: [GENERAL] LIKE and SIMILAR TO
Previous Message c k 2008-08-22 11:13:47 LIKE and SIMILAR TO

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2008-08-22 11:27:56 Re: Script to export all privileges to csv or similar
Previous Message c k 2008-08-22 11:13:47 LIKE and SIMILAR TO