pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: RW <postgres@tauceti.net>
To: c k <shreeseva.learning@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: LIKE and SIMILAR TO
Date: Fri, 22 Aug 2008 13:24:21 +0200
Message-ID: <48AEA1E5.3080505@tauceti.net> (raw)
In-Reply-To: <d8e7a1e30808220413s3e7c593fr7ee2be6af70ff1ca@mail.gmail.com>
References: <d8e7a1e30808220413s3e7c593fr7ee2be6af70ff1ca@mail.gmail.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <48AEA1E5.3080505@tauceti.net>
Permalink:  ../48AEA1E5.3080505@tauceti.net/
Also on:    postgresql.org/message-id/48AEA1E5.3080505@tauceti.net

 · 

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-admin@postgresql.org
  Cc: postgres@tauceti.net, shreeseva.learning@gmail.com, pgsql-general@postgresql.org
  Subject: Re: LIKE and SIMILAR TO
  In-Reply-To: <48AEA1E5.3080505@tauceti.net>

* 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